Package scriptella.jdbc
Class JdbcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
scriptella.core.SystemException
scriptella.spi.ProviderException
scriptella.jdbc.JdbcException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JndiProviderException,ScriptellaProviderException,SpringProviderException
Unchecked wrapper for SQL exceptions or other SQL related errors.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcException(String message) JdbcException(String message, String sql) JdbcException(String message, Throwable cause) JdbcException(String message, Throwable cause, String sql) JdbcException(String message, Throwable cause, String sql, List<?> parameters) -
Method Summary
Modifier and TypeMethodDescriptionThis method should be overriden by providers relying on external APIs to work with connections.Overriden by subclasses to provide user friendly provider name.protected voidMethods inherited from class scriptella.spi.ProviderException
addErrorCode, getErrorCodes, getErrorStatement, setErrorStatement, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
JdbcException
-
JdbcException
-
JdbcException
-
JdbcException
-
JdbcException
-
-
Method Details
-
initVendorCodes
-
getNativeException
Description copied from class:ProviderExceptionThis method should be overriden by providers relying on external APIs to work with connections. Used only for informative error reporting.Examples: SQL Exceptions, LDAP connection exceptions etc.
- Overrides:
getNativeExceptionin classProviderException- Returns:
- external API throwable wich may be important for user to recognize the problem.
-
getProviderName
Description copied from class:ProviderExceptionOverriden by subclasses to provide user friendly provider name.- Specified by:
getProviderNamein classProviderException- Returns:
- provider name.
-