public class SQLClientInfoException extends SQLException
SQLException
时引发一个或多个客户信息属性无法设置在
Connection
。除了提供
SQLException
信息,一
SQLClientInfoException
提供客户名单信息属性未设置。一些数据库不允许多个客户端信息属性进行设置自动。对于那些数据库,它可能是一些客户信息的性质已经确定即使
Connection.setClientInfo
方法抛出一个异常。应用程序可以使用
getFailedProperties
方法检索客户名单信息属性未设置。性能是通过
Map<String,ClientInfoStatus>
到适当的
SQLClientInfoException
构造函数确定。
ClientInfoStatus
,
Connection.setClientInfo(java.lang.String, java.lang.String)
,
Serialized Form
Constructor and Description |
---|
SQLClientInfoException()
构建了一个
SQLClientInfoException 对象。
|
SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties)
构建了一个
SQLClientInfoException 对象与一个给定的
failedProperties 初始化。
|
SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties, Throwable cause)
构建了一个
SQLClientInfoException 对象与一个给定的
cause 和
failedProperties 初始化。
|
SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties)
构建了一个
SQLClientInfoException 对象与一个给定的
reason 和
failedProperties 初始化。
|
SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
构建了一个
SQLClientInfoException 对象初始化一个给定的
reason ,
cause 和
failedProperties 。
|
SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String,ClientInfoStatus> failedProperties)
构建了一个
SQLClientInfoException 对象与一个给定的
reason ,
SQLState 初始化,
vendorCode 和
failedProperties 。
|
SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
构建了一个
SQLClientInfoException 对象与一个给定的
reason ,
SQLState ,
cause 初始化,
vendorCode 和
failedProperties 。
|
SQLClientInfoException(String reason, String SQLState, Map<String,ClientInfoStatus> failedProperties)
构建了一个
SQLClientInfoException 对象初始化一个给定的
reason ,
SQLState 和
failedProperties 。
|
SQLClientInfoException(String reason, String SQLState, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
构建了一个
SQLClientInfoException 对象与一个给定的
reason ,
SQLState 初始化,
cause 和
failedProperties 。
|
Modifier and Type | Method and Description |
---|---|
Map<String,ClientInfoStatus> |
getFailedProperties()
返回无法设置的客户端信息属性的列表。
|
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 SQLClientInfoException()
SQLClientInfoException
对象。的
reason
,
SQLState
,和failedproperties列表初始化为
null
和厂商代码初始化为0。的
cause
没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)
初始化。
public SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties)
SQLClientInfoException
对象与一个给定的
failedProperties
初始化。的
reason
和
SQLState
初始化为
null
和厂商代码初始化为0。的
cause
没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)
初始化。
failedProperties
-Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义原因代码
public SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties, Throwable cause)
SQLClientInfoException
对象与一个给定的
cause
和
failedProperties
初始化。的
reason
初始化为
null
如果
cause==null
或
cause.toString()
如果
cause!=null
和厂商代码初始化为0。
failedProperties
-Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义代码的原因
cause
-(这是以后的
getCause()
方法检索);可能是null指示的原因是不存在的或未知的。
public SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties)
SQLClientInfoException
对象与一个给定的
reason
和
failedProperties
初始化。的
SQLState
初始化为
null
和厂商代码初始化为0。的
cause
没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)
初始化。
reason
-描述的例外
failedProperties
-Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义原因代码
public SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
SQLClientInfoException
对象初始化一个给定的
reason
,
cause
和
failedProperties
。的
SQLState
初始化为
null
和厂商代码初始化为0。
reason
-描述的例外
failedProperties
-Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义代码的原因
cause
-这
SQLException
的根本原因(这是以后的
getCause()
方法检索);可能是null指示的原因是不存在的或未知的。
public SQLClientInfoException(String reason, String SQLState, Map<String,ClientInfoStatus> failedProperties)
SQLClientInfoException
对象初始化一个给定的
reason
,
SQLState
和
failedProperties
。的
cause
没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)
初始化。供应商代码被初始化为0。
reason
-描述的例外
SQLState
- XOPEN或SQL:2003码识别异常
failedProperties
-Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义原因代码
public SQLClientInfoException(String reason, String SQLState, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
SQLClientInfoException
对象与一个给定的
reason
,
SQLState
初始化,
cause
和
failedProperties
。供应商代码被初始化为0。
reason
-描述的例外
SQLState
- XOPEN或SQL:2003码识别异常
failedProperties
-Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义代码的原因
cause
-这
SQLException
的根本原因(这是以后的
getCause()
方法检索);可能是null指示的原因是不存在的或未知的。
public SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String,ClientInfoStatus> failedProperties)
SQLClientInfoException
对象与一个给定的
reason
,
SQLState
初始化,
vendorCode
和
failedProperties
。的
cause
没有初始化,并随后可被调用的方法的
Throwable.initCause(java.lang.Throwable)
初始化。
reason
-描述的例外
SQLState
- XOPEN或SQL:2003码识别异常
vendorCode
-数据库供应商特定的异常代码
failedProperties
-Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义原因代码
public SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<String,ClientInfoStatus> failedProperties, Throwable cause)
SQLClientInfoException
对象与一个给定的
reason
,
SQLState
,
cause
初始化,
vendorCode
和
failedProperties
。
reason
-描述的例外
SQLState
- XOPEN或SQL:2003码识别异常
vendorCode
-数据库供应商特定的异常代码
failedProperties
-Map包含的属性值,无法设置。在Map的钥匙包含客户端的信息的性质,无法设置名称和值包含一个在
ClientInfoStatus
定义代码的原因
cause
-这
SQLException
的根本原因(这是以后的
getCause()
方法检索);可能是null指示的原因是不存在的或未知的。
public Map<String,ClientInfoStatus> getFailedProperties()
ClientInfoStatus
定义原因代码
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.