Package org.dalesbred

Class DatabaseException

    • 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()  
      • Methods inherited from class java.lang.Throwable

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 returns null.
      • toString

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