Package org.kiwiproject.beta.jdbc
Class RuntimeSQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kiwiproject.beta.jdbc.RuntimeSQLException
- All Implemented Interfaces:
Serializable
Unchecked exception that wraps a
SQLException.
You should prefer kiwi's
UncheckedSQLException
over this exception class for the reasons described below.
This exception class was copied from kiwi-test. Later, kiwi version 4.2.0
added UncheckedSQLException. The RuntimeSQLException
in kiwi-test was then deprecated, scheduled for removal in version 5.0.0.
There are no current plans to deprecate or remove this class, but that
may change in a future release. So, we suggest changing any code using
this exception class to use kiwi's UncheckedSQLException instead.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeSQLException(String message, SQLException cause) Constructs an instance of this class.RuntimeSQLException(SQLException cause) Constructs an instance of this class. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RuntimeSQLException
Constructs an instance of this class.- Parameters:
message- the detail messagecause- theSQLExceptionwhich is the cause
-
RuntimeSQLException
Constructs an instance of this class.- Parameters:
cause- theSQLExceptionwhich is the cause
-
-
Method Details
-
getCause
Returns the cause of this exception.- Overrides:
getCausein classThrowable- Returns:
- the
SQLExceptionwhich is the cause of this exception.
-