Package com.blackrook.sql.util
Class SQLRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.blackrook.sql.util.SQLRuntimeException
- All Implemented Interfaces:
Serializable
An exception thrown to wrap a SQLException.
- Author:
- Matthew Tropiano
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new SQLRuntimeException from anIOException
.SQLRuntimeException
(String message, IOException e) Creates a new SQLRuntimeException from anIOException
.SQLRuntimeException
(String message, SQLException e) Creates a new SQLRuntimeException from aSQLException
.Creates a new SQLRuntimeException from aSQLException
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SQLRuntimeException
Creates a new SQLRuntimeException from aSQLException
.- Parameters:
e
- the exception to wrap.
-
SQLRuntimeException
Creates a new SQLRuntimeException from anIOException
.- Parameters:
e
- the exception to wrap.- Since:
- 1.1.0
-
SQLRuntimeException
Creates a new SQLRuntimeException from aSQLException
.- Parameters:
message
- the message.e
- the exception to wrap.- Since:
- 1.1.0
-
SQLRuntimeException
Creates a new SQLRuntimeException from anIOException
.- Parameters:
message
- the message.e
- the exception to wrap.- Since:
- 1.1.0
-
-
Method Details
-
getSQLException
- Returns:
- the SQLException that caused this exception.
-