Package org.kiwiproject.test.jdbc
Class RuntimeSQLException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.kiwiproject.test.jdbc.RuntimeSQLException
-
- All Implemented Interfaces:
Serializable
public class RuntimeSQLException extends RuntimeException
Unchecked exception that wraps aSQLException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RuntimeSQLException(String message, SQLException cause)
Constructs an instance of this class.RuntimeSQLException(SQLException cause)
Constructs an instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLException
getCause()
Returns the cause of this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RuntimeSQLException
public RuntimeSQLException(String message, SQLException cause)
Constructs an instance of this class.- Parameters:
message
- the detail messagecause
- theSQLException
which is the cause
-
RuntimeSQLException
public RuntimeSQLException(SQLException cause)
Constructs an instance of this class.- Parameters:
cause
- theSQLException
which is the cause
-
-
Method Detail
-
getCause
public SQLException getCause()
Returns the cause of this exception.- Overrides:
getCause
in classThrowable
- Returns:
- the
SQLException
which is the cause of this exception.
-
-