Package java.sql

Class 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 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

      public SQLClientInfoException​(Map<String,​ClientInfoStatus> failedProperties)
      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 Map object is set to the failed properties.
      Parameters:
      failedProperties - the Map object to use as the property values
    • SQLClientInfoException

      public SQLClientInfoException​(Map<String,​ClientInfoStatus> failedProperties, Throwable cause)
      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 Map object is set to the failed properties.
      Parameters:
      failedProperties - the Map object to use as the property values
      cause - the Throwable object for the underlying reason this SQLException
    • SQLClientInfoException

      public SQLClientInfoException​(String reason, Map<String,​ClientInfoStatus> failedProperties)
      Creates an SQLClientInfoException object. The Reason string is set to reason, and the Map object is set to the failed properties.
      Parameters:
      reason - the string to use as the Reason string
      failedProperties - the Map object 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 Map object is set to the failed properties.
      Parameters:
      reason - the string to use as the Reason string
      failedProperties - the Map object 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 Map object is set to the failed properties.
      Parameters:
      reason - the string to use as the Reason string
      sqlState - the string to use as the SQLState string
      vendorCode - the integer value for the error code
      failedProperties - the Map object 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 Map object is set to the failed properties.
      Parameters:
      reason - the string to use as the Reason string
      sqlState - the string to use as the SQLState string
      vendorCode - the integer value for the error code
      failedProperties - the Map object 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 Map object is set to the failed properties.
      Parameters:
      reason - the string to use as the Reason string
      sqlState - the string to use as the SQLState string
      failedProperties - the Map object 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 Map object is set to the failed properties.
      Parameters:
      reason - the string to use as the Reason string
      sqlState - the string to use as the SQLState string
      failedProperties - the Map object to use as the property values
      cause - the Throwable object for the underlying reason this SQLException
  • Method Details

    • getFailedProperties

      public Map<String,​ClientInfoStatus> getFailedProperties()
      returns that the client info properties which could not be set
      Returns:
      the list of ClientInfoStatus objects indicate client info properties