Class DbException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConstraintViolationException, DbDetachedException, DbFullException, DbMaxDataSizeExceededException, DbMaxReadersExceededException, DbSchemaException, DbShutdownException, FeatureNotAvailableException, FileCorruptException, NonUniqueResultException, NumericOverflowException

public class DbException extends RuntimeException
General exception for things that may go wrong with the database. Also base class for more concrete exceptions.
See Also:
  • Constructor Details

    • DbException

      public DbException(String message)
    • DbException

      public DbException(String message, Throwable cause)
    • DbException

      public DbException(String message, int errorCode)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • getErrorCode

      public int getErrorCode()
      0 == no error code available