Package org.ethelred.kiwiproc.exception
Class UncheckedSQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ethelred.kiwiproc.exception.UncheckedSQLException
- All Implemented Interfaces:
Serializable
Unchecked wrapper for
SQLException. Thrown by
TransactionalDAO.call and
TransactionalDAO.run when a database error occurs
during a transactional callback, allowing callers to handle database errors without checked exceptions.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Returns the underlyingSQLExceptionthat caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UncheckedSQLException
-
UncheckedSQLException
-
-
Method Details
-
getCause
Returns the underlyingSQLExceptionthat caused this exception.- Overrides:
getCausein classThrowable- Returns:
- the cause, guaranteed to be non-null and of type
SQLException
-