Package java.sql
Class SQLClientInfoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLClientInfoException
- All Implemented Interfaces:
Serializable,Iterable<Throwable>
public class SQLClientInfoException extends SQLException
An exception, which is subclass of SQLException, is thrown when one or more
client info properties could not be set on a Connection.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SQLClientInfoException()Creates an SQLClientInfoException object.SQLClientInfoException(String reason, String sqlState, int vendorCode, Map<String,ClientInfoStatus> failedProperties)Creates an SQLClientInfoException object.SQLClientInfoException(String reason, String sqlState, int vendorCode, Map<String,ClientInfoStatus> failedProperties, Throwable cause)Creates an SQLClientInfoException object.SQLClientInfoException(String reason, String sqlState, Map<String,ClientInfoStatus> failedProperties)Creates an SQLClientInfoException object.SQLClientInfoException(String reason, String sqlState, Map<String,ClientInfoStatus> failedProperties, Throwable cause)Creates an SQLClientInfoException object.SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties)Creates an SQLClientInfoException object.SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties, Throwable cause)Creates an SQLClientInfoException object.SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties)Creates an SQLClientInfoException object.SQLClientInfoException(Map<String,ClientInfoStatus> failedProperties, Throwable cause)Creates an SQLClientInfoException object. -
Method Summary
Modifier and Type Method Description Map<String,ClientInfoStatus>getFailedProperties()returns that the client info properties which could not be setMethods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SQLClientInfoException
public SQLClientInfoException()Creates an SQLClientInfoException object. The Reason string is set to null, the SQLState string is set to null and the Error Code is set to 0. -
SQLClientInfoException
Creates an SQLClientInfoException object. The Reason string is set to the given reason string, the SQLState string is set to null and the Error Code is set to 0, and the Mapobject is set to the failed properties. - Parameters:
failedProperties- the Mapobject to use as the property values
-
SQLClientInfoException
Creates an SQLClientInfoException object. The Reason string is set to the null if cause == null or cause.toString() if cause!=null, the cause Throwable object is set to the given cause Throwable object, and the Mapobject is set to the failed properties. - Parameters:
failedProperties- the Mapobject to use as the property values cause- the Throwable object for the underlying reason this SQLException
-
SQLClientInfoException
Creates an SQLClientInfoException object. The Reason string is set to reason, and the Mapobject is set to the failed properties. - Parameters:
reason- the string to use as the Reason stringfailedProperties- the Mapobject to use as the property values
-
SQLClientInfoException
public SQLClientInfoException(String reason, Map<String,ClientInfoStatus> failedProperties, Throwable cause)Creates an SQLClientInfoException object. The Reason string is set to reason, the cause Throwable object is set to the given cause Throwable object, and the Mapobject is set to the failed properties. - Parameters:
reason- the string to use as the Reason stringfailedProperties- the Mapobject to use as the property values cause- the Throwable object for the underlying reason this SQLException
-
SQLClientInfoException
public SQLClientInfoException(String reason, String sqlState, int vendorCode, Map<String,ClientInfoStatus> failedProperties)Creates an SQLClientInfoException object. The Reason string is set to reason, the SQLState string is set to the sqlState, the Error Code is set to the vendorCode and the Mapobject is set to the failed properties. - Parameters:
reason- the string to use as the Reason stringsqlState- the string to use as the SQLState stringvendorCode- the integer value for the error codefailedProperties- the Mapobject to use as the property values
-
SQLClientInfoException
public SQLClientInfoException(String reason, String sqlState, int vendorCode, Map<String,ClientInfoStatus> failedProperties, Throwable cause)Creates an SQLClientInfoException object. The Reason string is set to reason, the SQLState string is set to the sqlState, the Error Code is set to the vendorCode the cause Throwable object is set to the given cause Throwable object, and the Mapobject is set to the failed properties. - Parameters:
reason- the string to use as the Reason stringsqlState- the string to use as the SQLState stringvendorCode- the integer value for the error codefailedProperties- the Mapobject to use as the property values cause- the Throwable object for the underlying reason this SQLException
-
SQLClientInfoException
public SQLClientInfoException(String reason, String sqlState, Map<String,ClientInfoStatus> failedProperties)Creates an SQLClientInfoException object. The Reason string is set to reason, the SQLState string is set to the sqlState, and the Mapobject is set to the failed properties. - Parameters:
reason- the string to use as the Reason stringsqlState- the string to use as the SQLState stringfailedProperties- the Mapobject to use as the property values
-
SQLClientInfoException
public SQLClientInfoException(String reason, String sqlState, Map<String,ClientInfoStatus> failedProperties, Throwable cause)Creates an SQLClientInfoException object. The Reason string is set to reason, the SQLState string is set to the sqlState, the Error Code is set to the vendorCode, and the Mapobject is set to the failed properties. - Parameters:
reason- the string to use as the Reason stringsqlState- the string to use as the SQLState stringfailedProperties- the Mapobject to use as the property values cause- the Throwable object for the underlying reason this SQLException
-
-
Method Details
-
getFailedProperties
returns that the client info properties which could not be set- Returns:
- the list of ClientInfoStatus objects indicate client info properties
-