Class DatabaseException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DB2Exception, MSSQLException, MySQLException, OracleException, PgException

public abstract class DatabaseException extends VertxException
Base class for database failures.
See Also:
  • Constructor Details

    • DatabaseException

      protected DatabaseException(String message, int errorCode, String sqlState)
    • DatabaseException

      public DatabaseException(String message, int errorCode, String sqlState, SQLException cause)
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Database specific error code.
      Returns:
      the error code
    • getSqlState

      public String getSqlState()
      SQL State (XOPEN or SQL:2003 conventions).
      Returns:
      the SQL state if known or null