public class SQLDataException extends SQLNonTransientException
SQLException
当SQLSTATE类的值的二十二的子类,或在供应商规定的条件。这表示各种数据错误,包括但不限于数据转换错误,划分为0个,并对函数进行无效的参数。
请咨询您的驱动程序供应商文件的供应商规定的条件下,这可能会引发异常
。
Constructor and Description |
---|
SQLDataException()
构建了一个
SQLDataException 对象。
|
SQLDataException(String reason)
构建一个与给定的
reason
SQLDataException 对象。
|
SQLDataException(String reason, String SQLState)
构建一个与给定的
reason 和
SQLState
SQLDataException 对象。
|
SQLDataException(String reason, String SQLState, int vendorCode)
构建了一个
SQLDataException 对象与一个给定的
reason ,
SQLState 和
vendorCode 。
|
SQLDataException(String reason, String SQLState, int vendorCode, Throwable cause)
构建了一个
SQLDataException 对象与一个给定的
reason ,
SQLState ,
vendorCode 和
cause 。
|
SQLDataException(String reason, String SQLState, Throwable cause)
构建了一个
SQLDataException 对象与一个给定的
reason ,
SQLState 和
cause 。
|
SQLDataException(String reason, Throwable cause)
构建一个与给定的
reason 和
cause
SQLDataException 对象。
|
SQLDataException(Throwable cause)
构建一个与给定的
cause
SQLDataException 对象。
|
getErrorCode, getNextException, getSQLState, iterator, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public SQLDataException()
SQLDataException
对象。的
reason
,
SQLState
初始化为
null
和厂商代码初始化为0。的
cause
没有初始化,并随后可通过调用
Throwable.initCause(java.lang.Throwable)
方法初始化。
public SQLDataException(String reason)
reason
SQLDataException
对象。的
SQLState
初始化为
null
和厂商代码初始化为0。的
cause
没有初始化,并随后可通过调用
Throwable.initCause(java.lang.Throwable)
方法初始化。
reason
-描述的例外
public SQLDataException(String reason, String SQLState)
reason
和
SQLState
SQLDataException
对象。供应商代码被初始化为0。的
cause
没有初始化,并随后可通过调用
Throwable.initCause(java.lang.Throwable)
方法初始化。
reason
-描述的例外
SQLState
- XOPEN或SQL:2003码识别异常
public SQLDataException(String reason, String SQLState, int vendorCode)
SQLDataException
对象与一个给定的
reason
,
SQLState
和
vendorCode
。的
cause
没有初始化,并随后可通过调用
Throwable.initCause(java.lang.Throwable)
方法初始化。
reason
-描述的例外
SQLState
- XOPEN或SQL:2003码识别异常
vendorCode
-数据库供应商特定的异常代码
public SQLDataException(Throwable cause)
cause
SQLDataException
对象,
SQLState
初始化为
null
和厂商代码初始化为0。的
reason
初始化为
null
如果
cause==null
或
cause.toString()
如果
cause!=null
。
cause
-这
SQLException
的根本原因(这是以后的
getCause()
方法检索);可能是null指示的原因是不存在的或未知的。
public SQLDataException(String reason, Throwable cause)
reason
和
cause
SQLDataException
对象。的
SQLState
初始化为
null
和厂商代码初始化为0。
reason
-描述的例外。
cause
-这
SQLException
的根本原因(这是以后的
getCause()
方法检索);可能是null指示的原因是不存在的或未知的。
public SQLDataException(String reason, String SQLState, Throwable cause)
SQLDataException
对象与一个给定的
reason
,
SQLState
和
cause
。供应商代码被初始化为0。
reason
-描述的例外。
SQLState
- XOPEN或SQL:2003码识别异常
cause
-这
SQLException
的根本原因(这是以后的
getCause()
方法检索);可能是null指示的原因是不存在的或未知的。
public SQLDataException(String reason, String SQLState, int vendorCode, Throwable cause)
reason
,
SQLState
SQLDataException
对象,
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.