Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

SQLNonTransientConnectionException

extends SQLNonTransientException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.sql.SQLException
         ↳ java.sql.SQLNonTransientException
           ↳ java.sql.SQLNonTransientConnectionException

Class Overview

An exception, which is subclass of SQLException, is thrown when the connection operation that failed will not succeed when the operation is retried without the cause of the failure being corrected.

Summary

Public Constructors
SQLNonTransientConnectionException ()
Creates an SQLNonTransientConnectionException object.
SQLNonTransientConnectionException ( String reason)
Creates an SQLNonTransientConnectionException object.
SQLNonTransientConnectionException ( String reason, String sqlState)
Creates an SQLNonTransientConnectionException object.
SQLNonTransientConnectionException ( String reason, String sqlState, int vendorCode)
Creates an SQLNonTransientConnectionException object.
SQLNonTransientConnectionException ( Throwable cause)
Creates an SQLNonTransientConnectionException object.
SQLNonTransientConnectionException ( String reason, Throwable cause)
Creates an SQLNonTransientConnectionException object.
SQLNonTransientConnectionException ( String reason, String sqlState, Throwable cause)
Creates an SQLNonTransientConnectionException object.
SQLNonTransientConnectionException ( String reason, String sqlState, int vendorCode, Throwable cause)
Creates an SQLNonTransientConnectionException object.
[Expand]
Inherited Methods
From class java.sql.SQLException
From class java.lang.Throwable
From class java.lang.Object
From interface java.lang.Iterable

Public Constructors

public SQLNonTransientConnectionException ()

Added in API level 9

Creates an SQLNonTransientConnectionException object. The Reason string is set to null, the SQLState string is set to null and the Error Code is set to 0.

public SQLNonTransientConnectionException ( String reason)

Added in API level 9

Creates an SQLNonTransientConnectionException object. The Reason string is set to the given reason string, the SQLState string is set to null and the Error Code is set to 0.

Parameters
reason the string to use as the Reason string

public SQLNonTransientConnectionException ( String reason, String sqlState)

Added in API level 9

Creates an SQLNonTransientConnectionException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to 0.

Parameters
reason the string to use as the Reason string
sqlState the string to use as the SQLState string

public SQLNonTransientConnectionException ( String reason, String sqlState, int vendorCode)

Added in API level 9

Creates an SQLNonTransientConnectionException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to the given error code value.

Parameters
reason the string to use as the Reason string
sqlState the string to use as the SQLState string
vendorCode the integer value for the error code

public SQLNonTransientConnectionException ( Throwable cause)

Added in API level 9

Creates an SQLNonTransientConnectionException object. The Reason string is set to the null if cause == null or cause.toString() if cause!=null,and the cause Throwable object is set to the given cause Throwable object.

Parameters
cause the Throwable object for the underlying reason this SQLException

public SQLNonTransientConnectionException ( String reason, Throwable cause)

Added in API level 9

Creates an SQLNonTransientConnectionException object. The Reason string is set to the given and the cause Throwable object is set to the given cause Throwable object.

Parameters
reason the string to use as the Reason string
cause the Throwable object for the underlying reason this SQLException

public SQLNonTransientConnectionException ( String reason, String sqlState, Throwable cause)

Added in API level 9

Creates an SQLNonTransientConnectionException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the cause Throwable object is set to the given cause Throwable object.

Parameters
reason the string to use as the Reason string
sqlState the string to use as the SQLState string
cause the Throwable object for the underlying reason this SQLException

public SQLNonTransientConnectionException ( String reason, String sqlState, int vendorCode, Throwable cause)

Added in API level 9

Creates an SQLNonTransientConnectionException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string , the Error Code is set to the given error code value, and the cause Throwable object is set to the given cause Throwable object.

Parameters
reason the string to use as the Reason string
sqlState the string to use as the SQLState string
vendorCode the integer value for the error code
cause the Throwable object for the underlying reason this SQLException