public class SQLRecoverableException extends SQLException
SQLException抛出的情况下,失败的操作可以申请执行一些复苏的步骤和重试整个交易或在分布式事务的情况下成功,交易部门。至少,恢复操作必须包括关闭当前连接和获得一个新的连接。
| Constructor and Description |
|---|
SQLRecoverableException()
构建了一个
SQLRecoverableException对象。
|
SQLRecoverableException(String reason)
构建一个与给定的
reason
SQLRecoverableException对象。
|
SQLRecoverableException(String reason, String SQLState)
构建一个与给定的
reason和
SQLState
SQLRecoverableException对象。
|
SQLRecoverableException(String reason, String SQLState, int vendorCode)
构建了一个
SQLRecoverableException对象与一个给定的
reason,
SQLState和
vendorCode。
|
SQLRecoverableException(String reason, String SQLState, int vendorCode, Throwable cause)
构建一个与给定的
reason,
SQLState
SQLRecoverableException对象,
vendorCode和
cause。
|
SQLRecoverableException(String reason, String SQLState, Throwable cause)
构建了一个
SQLRecoverableException对象与一个给定的
reason,
SQLState和
cause。
|
SQLRecoverableException(String reason, Throwable cause)
构建一个与给定的
reason和
cause
SQLRecoverableException对象。
|
SQLRecoverableException(Throwable cause)
构建一个与给定的
cause
SQLRecoverableException对象。
|
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SQLRecoverableException()
SQLRecoverableException对象。的
reason,
SQLState初始化为
null和厂商代码初始化为0。的
cause没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)初始化。
public SQLRecoverableException(String reason)
reason
SQLRecoverableException对象。的
SQLState初始化为
null和厂商代码初始化为0。的
cause没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)初始化。
reason -描述的例外
public SQLRecoverableException(String reason, String SQLState)
reason和
SQLState
SQLRecoverableException对象。的
cause没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)初始化。供应商代码被初始化为0。
reason -描述的例外
SQLState - XOPEN或SQL:2003码识别异常
public SQLRecoverableException(String reason, String SQLState, int vendorCode)
SQLRecoverableException对象与一个给定的
reason,
SQLState和
vendorCode。的
cause没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)初始化。
reason -描述的例外
SQLState - XOPEN或SQL:2003码识别异常
vendorCode -数据库供应商特定的异常代码
public SQLRecoverableException(Throwable cause)
cause
SQLRecoverableException对象。的
SQLState初始化为
null和厂商代码初始化为0。的
reason初始化为
null如果
cause==null或
cause.toString()如果
cause!=null。
cause -这
SQLException的根本原因(这是以后的
getCause()方法检索);可能是null指示的原因是不存在的或未知的。
public SQLRecoverableException(String reason, Throwable cause)
reason和
cause
SQLRecoverableException对象。的
SQLState初始化为
null和厂商代码初始化为0。
reason -描述的例外。
cause -这
SQLException的根本原因(这是以后的
getCause()方法检索);可能是null指示的原因是不存在的或未知的。
public SQLRecoverableException(String reason, String SQLState, Throwable cause)
SQLRecoverableException对象与一个给定的
reason,
SQLState和
cause。供应商代码初始化为0。
reason -描述的例外。
SQLState - XOPEN或SQL:2003码识别异常
cause -这
SQLException的根本原因(这是以后的
getCause()方法检索);可能是null指示的原因是不存在的或未知的。
public SQLRecoverableException(String reason, String SQLState, int vendorCode, Throwable cause)
reason,
SQLRecoverableException对象
SQLState,
vendorCode和
cause。
reason -描述的例外
SQLState - XOPEN或SQL:2003码识别异常
vendorCode -数据库供应商特定的异常代码
cause -这
SQLException的根本原因(这是以后的
getCause()方法检索);可能是null指示的原因是不存在的或未知的。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.