Package org.dalesbred
Class DatabaseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.dalesbred.DatabaseException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DatabaseSQLException
,InstantiationFailureException
,NoActiveTransactionException
,SqlSyntaxException
,UnexpectedResultException
,VariableResolutionException
public class DatabaseException extends java.lang.RuntimeException
Base class for all of Dalesbred's exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabaseException(@NotNull java.lang.String message)
DatabaseException(@NotNull java.lang.String message, @NotNull java.lang.Throwable cause)
DatabaseException(@NotNull java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable SqlQuery
getQuery()
If this exception was thrown during an execution of a query, returns the query.@NotNull java.lang.String
toString()
-
-
-
Constructor Detail
-
DatabaseException
public DatabaseException(@NotNull @NotNull java.lang.String message)
-
DatabaseException
public DatabaseException(@NotNull @NotNull java.lang.Throwable cause)
-
DatabaseException
public DatabaseException(@NotNull @NotNull java.lang.String message, @NotNull @NotNull java.lang.Throwable cause)
-
-
Method Detail
-
getQuery
@Nullable public @Nullable SqlQuery getQuery()
If this exception was thrown during an execution of a query, returns the query. Otherwise returnsnull
.
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-