Class JdbcException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JndiProviderException, ScriptellaProviderException, SpringProviderException

public class JdbcException extends ProviderException
Unchecked wrapper for SQL exceptions or other SQL related errors.
Version:
1.0
Author:
Fyodor Kupolov
See Also:
  • Constructor Details

  • Method Details

    • initVendorCodes

      protected void initVendorCodes(Throwable t)
    • getNativeException

      public Throwable getNativeException()
      Description copied from class: ProviderException
      This 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:
      getNativeException in class ProviderException
      Returns:
      external API throwable wich may be important for user to recognize the problem.
    • getProviderName

      public String getProviderName()
      Description copied from class: ProviderException
      Overriden by subclasses to provide user friendly provider name.
      Specified by:
      getProviderName in class ProviderException
      Returns:
      provider name.