Most visited

Recently visited

Added in API level 9

SQLTimeoutException

public class SQLTimeoutException
extends SQLTransientException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.sql.SQLException
         ↳ java.sql.SQLTransientException
           ↳ java.sql.SQLTimeoutException


Statement指定的超时已过期时引发的子类 SQLException

此异常不对应于标准的SQLState。

Summary

Public constructors

SQLTimeoutException()

构造一个 SQLTimeoutException对象。

SQLTimeoutException(String reason)

用给定的 reason构造一个 SQLTimeoutException对象。

SQLTimeoutException(String reason, String SQLState)

使用给定的 reasonSQLState构造一个 SQLTimeoutException对象。

SQLTimeoutException(String reason, String SQLState, int vendorCode)

构造一个 SQLTimeoutException与给定对象 reasonSQLStatevendorCode

SQLTimeoutException(Throwable cause)

用给定的 cause构造一个 SQLTimeoutException对象。

SQLTimeoutException(String reason, Throwable cause)

用给定的 reasoncause构造一个 SQLTimeoutException对象。

SQLTimeoutException(String reason, String SQLState, Throwable cause)

构造一个 SQLTimeoutException与给定对象 reasonSQLStatecause

SQLTimeoutException(String reason, String SQLState, int vendorCode, Throwable cause)

构造一个 SQLTimeoutException与给定对象 reasonSQLStatevendorCodecause

Inherited methods

From class java.sql.SQLException
From class java.lang.Throwable
From class java.lang.Object
From interface java.lang.Iterable

Public constructors

SQLTimeoutException

Added in API level 9
SQLTimeoutException ()

构造一个SQLTimeoutException对象。 reasonSQLState被初始化为null和供应商代码被初始化为0。 cause没有初始化,随后可以通过向一个呼叫进行初始化initCause(java.lang.Throwable)方法。

SQLTimeoutException

Added in API level 9
SQLTimeoutException (String reason)

用给定的reason构造一个SQLTimeoutException对象。 SQLState初始化为null ,并将供应商代码初始化为0. cause未初始化,并可能随后通过调用initCause(java.lang.Throwable)方法进行初始化。

Parameters
reason String: a description of the exception

SQLTimeoutException

Added in API level 9
SQLTimeoutException (String reason, 
                String SQLState)

使用给定的reasonSQLState构造一个SQLTimeoutException对象。 cause未初始化,并可能随后通过调用initCause(java.lang.Throwable)方法进行初始化。 供应商代码初始化为0。

Parameters
reason String: a description of the exception
SQLState String: an XOPEN or SQL:2003 code identifying the exception

SQLTimeoutException

Added in API level 9
SQLTimeoutException (String reason, 
                String SQLState, 
                int vendorCode)

构造一个SQLTimeoutException与给定对象reasonSQLStatevendorCode cause未初始化,并可能随后通过调用initCause(java.lang.Throwable)方法进行初始化。

Parameters
reason String: a description of the exception
SQLState String: an XOPEN or SQL:2003 code identifying the exception
vendorCode int: a database vendor specific exception code

SQLTimeoutException

Added in API level 9
SQLTimeoutException (Throwable cause)

使用给定的cause构造一个SQLTimeoutException对象。 SQLState初始化为null ,供应商代码初始化为0. reason初始化为null如果为cause==nullcause.toString()如果为null则初始化为cause!=null

Parameters
cause Throwable: the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

SQLTimeoutException

Added in API level 9
SQLTimeoutException (String reason, 
                Throwable cause)

用给定的reasoncause构造一个SQLTimeoutException对象。 SQLState初始化为null ,供应商代码初始化为0。

Parameters
reason String: a description of the exception.
cause Throwable: the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

SQLTimeoutException

Added in API level 9
SQLTimeoutException (String reason, 
                String SQLState, 
                Throwable cause)

构造一个SQLTimeoutException与给定对象reasonSQLStatecause 供应商代码初始化为0。

Parameters
reason String: a description of the exception.
SQLState String: an XOPEN or SQL:2003 code identifying the exception
cause Throwable: the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

SQLTimeoutException

Added in API level 9
SQLTimeoutException (String reason, 
                String SQLState, 
                int vendorCode, 
                Throwable cause)

构造一个 SQLTimeoutException与给定对象 reasonSQLStatevendorCodecause

Parameters
reason String: a description of the exception
SQLState String: an XOPEN or SQL:2003 code identifying the exception
vendorCode int: a database vendor-specific exception code
cause Throwable: the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Hooray!