Identify Exception (identifyException)
Identify a specific SQL error code or SQL state on a SQLException. This enables the server to take appropriate action based on the error condition. For example, closing a stale connection instead of returning it to the connection pool.
Name | Type | Default | Description |
---|---|---|---|
as |
string |
Identifies the error condition that the SQL error code or SQL state represents. Allowed values are: None or StaleConnection. None removes a mapping. StaleConnection causes connections that are stale to be evicted from the connection pool once they are closed. |
|
errorCode |
int |
An error code specific to the backend database. Normally, this is the actual error code that is returned by the underlying database. |
|
id |
string |
A unique configuration ID. |
|
sqlState |
string |
A string that follows either the XOPEN SQL state conventions or the SQL:2003 conventions. |