Package org.dalesbred

Class DatabaseException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DatabaseSQLException, InstantiationFailureException, NoActiveTransactionException, SqlSyntaxException, UnexpectedResultException, VariableResolutionException

public class DatabaseException extends RuntimeException
Base class for all of Dalesbred's exceptions.
See Also:
  • Constructor Details

    • DatabaseException

      public DatabaseException(@NotNull @NotNull String message)
    • DatabaseException

      public DatabaseException(@NotNull @NotNull Throwable cause)
    • DatabaseException

      public DatabaseException(@NotNull @NotNull String message, @NotNull @NotNull Throwable cause)
  • Method Details

    • getQuery

      @Nullable public @Nullable SqlQuery getQuery()
      If this exception was thrown during an execution of a query, returns the query. Otherwise returns null.
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Throwable