Class DatabaseException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    CorruptDatabaseException

    @ThreadSafe
    public class DatabaseException
    extends java.lang.RuntimeException
    An exception thrown if an operation against the database fails.
    Author:
    Jeremy Long
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DatabaseException​(java.lang.String msg)
      Creates an DatabaseException.
      DatabaseException​(java.lang.String msg, java.lang.Throwable ex)
      Creates an DatabaseException.
      DatabaseException​(java.lang.Throwable ex)
      Creates an DatabaseException.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DatabaseException

        public DatabaseException​(java.lang.String msg)
        Creates an DatabaseException.
        Parameters:
        msg - the exception message
      • DatabaseException

        public DatabaseException​(java.lang.Throwable ex)
        Creates an DatabaseException.
        Parameters:
        ex - the cause of the exception
      • DatabaseException

        public DatabaseException​(java.lang.String msg,
                                 java.lang.Throwable ex)
        Creates an DatabaseException.
        Parameters:
        msg - the exception message
        ex - the cause of the exception