Skip to content

Most visited

Recently visited

navigation
Added in API level 9

SQLClientInfoException

public class SQLClientInfoException
extends SQLException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.sql.SQLException
         ↳ java.sql.SQLClientInfoException


An exception, which is subclass of SQLException, is thrown when one or more client info properties could not be set on a Connection.

Summary

Public constructors

SQLClientInfoException()

Creates an SQLClientInfoException object.

SQLClientInfoException(Map<StringClientInfoStatus> failedProperties)

Creates an SQLClientInfoException object.

SQLClientInfoException(Map<StringClientInfoStatus> failedProperties, Throwable cause)

Creates an SQLClientInfoException object.

SQLClientInfoException(String reason, Map<StringClientInfoStatus> failedProperties)

Creates an SQLClientInfoException object.

SQLClientInfoException(String reason, Map<StringClientInfoStatus> failedProperties, Throwable cause)

Creates an SQLClientInfoException object.

SQLClientInfoException(String reason, String sqlState, int vendorCode, Map<StringClientInfoStatus> failedProperties)

Creates an SQLClientInfoException object.

SQLClientInfoException(String reason, String sqlState, int vendorCode, Map<StringClientInfoStatus> failedProperties, Throwable cause)

Creates an SQLClientInfoException object.

SQLClientInfoException(String reason, String sqlState, Map<StringClientInfoStatus> failedProperties)

Creates an SQLClientInfoException object.

SQLClientInfoException(String reason, String sqlState, Map<StringClientInfoStatus> failedProperties, Throwable cause)

Creates an SQLClientInfoException object.

Public methods

Map<StringClientInfoStatus> getFailedProperties()

returns that the client info properties which could not be set

Inherited methods

From class java.sql.SQLException
From class java.lang.Throwable
From class java.lang.Object
From interface java.lang.Iterable

Public constructors

SQLClientInfoException

Added in API level 9
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

Added in API level 9
SQLClientInfoException (Map<StringClientInfoStatus> 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 Map: the Map object to use as the property values

SQLClientInfoException

Added in API level 9
SQLClientInfoException (Map<StringClientInfoStatus> 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 Map: the Map object to use as the property values
cause Throwable: the Throwable object for the underlying reason this SQLException

SQLClientInfoException

Added in API level 9
SQLClientInfoException (String reason, 
                Map<StringClientInfoStatus> failedProperties)

Creates an SQLClientInfoException object. The Reason string is set to reason, and the Map object is set to the failed properties.

Parameters
reason String: the string to use as the Reason string
failedProperties Map: the Map object to use as the property values

SQLClientInfoException

Added in API level 9
SQLClientInfoException (String reason, 
                Map<StringClientInfoStatus> 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 String: the string to use as the Reason string
failedProperties Map: the Map object to use as the property values
cause Throwable: the Throwable object for the underlying reason this SQLException

SQLClientInfoException

Added in API level 9
SQLClientInfoException (String reason, 
                String sqlState, 
                int vendorCode, 
                Map<StringClientInfoStatus> 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 String: the string to use as the Reason string
sqlState String: the string to use as the SQLState string
vendorCode int: the integer value for the error code
failedProperties Map: the Map object to use as the property values

SQLClientInfoException

Added in API level 9
SQLClientInfoException (String reason, 
                String sqlState, 
                int vendorCode, 
                Map<StringClientInfoStatus> 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 String: the string to use as the Reason string
sqlState String: the string to use as the SQLState string
vendorCode int: the integer value for the error code
failedProperties Map: the Map object to use as the property values
cause Throwable: the Throwable object for the underlying reason this SQLException

SQLClientInfoException

Added in API level 9
SQLClientInfoException (String reason, 
                String sqlState, 
                Map<StringClientInfoStatus> 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 String: the string to use as the Reason string
sqlState String: the string to use as the SQLState string
failedProperties Map: the Map object to use as the property values

SQLClientInfoException

Added in API level 9
SQLClientInfoException (String reason, 
                String sqlState, 
                Map<StringClientInfoStatus> 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 String: the string to use as the Reason string
sqlState String: the string to use as the SQLState string
failedProperties Map: the Map object to use as the property values
cause Throwable: the Throwable object for the underlying reason this SQLException

Public methods

getFailedProperties

Added in API level 9
Map<StringClientInfoStatus> getFailedProperties ()

returns that the client info properties which could not be set

Returns
Map<StringClientInfoStatus> the list of ClientInfoStatus objects indicate client info properties
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.