SQLClientInfoException

public class SQLClientInfoException extends SQLException

The subclass of SQLException is thrown when one or more client info properties could not be set on a Connection. In addition to the information provided by SQLException, a SQLClientInfoException provides a list of client info properties that were not set. Some databases do not allow multiple client info properties to be set atomically. For those databases, it is possible that some of the client info properties had been set even though the Connection.setClientInfo method threw an exception. An application can use the getFailedProperties method to retrieve a list of client info properties that were not set. The properties are identified by passing a Map<String,ClientInfoStatus> to the appropriate SQLClientInfoException constructor.

Public Constructor Summary

SQLClientInfoException()
Constructs a SQLClientInfoException Object.
SQLClientInfoException(Map<StringClientInfoStatus> failedProperties)
Constructs a SQLClientInfoException object initialized with a given failedProperties.
SQLClientInfoException(Map<StringClientInfoStatus> failedProperties, Throwable cause)
Constructs a SQLClientInfoException object initialized with a given cause and failedProperties.
SQLClientInfoException(String reason, Map<StringClientInfoStatus> failedProperties)
Constructs a SQLClientInfoException object initialized with a given reason and failedProperties.
SQLClientInfoException(String reason, Map<StringClientInfoStatus> failedProperties, Throwable cause)
Constructs a SQLClientInfoException object initialized with a given reason, cause and failedProperties.
SQLClientInfoException(String reason, String SQLState, Map<StringClientInfoStatus> failedProperties)
Constructs a SQLClientInfoException object initialized with a given reason, SQLState and failedProperties.
SQLClientInfoException(String reason, String SQLState, Map<StringClientInfoStatus> failedProperties, Throwable cause)
Constructs a SQLClientInfoException object initialized with a given reason, SQLState, cause and failedProperties.
SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<StringClientInfoStatus> failedProperties)
Constructs a SQLClientInfoException object initialized with a given reason, SQLState, vendorCode and failedProperties.
SQLClientInfoException(String reason, String SQLState, int vendorCode, Map<StringClientInfoStatus> failedProperties, Throwable cause)
Constructs a SQLClientInfoException object initialized with a given reason, SQLState, cause, vendorCode and failedProperties.

Public Method Summary

Map<StringClientInfoStatus>
getFailedProperties()
Returns the list of client info properties that could not be set.

Inherited Method Summary