Package org.h2.jdbc
Class JdbcSQLNonTransientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLNonTransientException
org.h2.jdbc.JdbcSQLNonTransientException
- All Implemented Interfaces:
Serializable
,Iterable<Throwable>
,JdbcException
public final class JdbcSQLNonTransientException
extends SQLNonTransientException
implements JdbcException
Represents a database exception.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.h2.jdbc.JdbcException
getErrorCode
-
Constructor Details
-
JdbcSQLNonTransientException
public JdbcSQLNonTransientException(String message, String sql, String state, int errorCode, Throwable cause, String stackTrace) Creates a SQLNonTransientException.- Parameters:
message
- the reasonsql
- the SQL statementstate
- the SQL stateerrorCode
- the error codecause
- the exception that was the reason for this exceptionstackTrace
- the stack trace
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getOriginalMessage
Description copied from interface:JdbcException
INTERNAL- Specified by:
getOriginalMessage
in interfaceJdbcException
- Returns:
- original message
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
getSQL
Description copied from interface:JdbcException
Returns the SQL statement.SQL statements that contain '--hide--' are not listed.
- Specified by:
getSQL
in interfaceJdbcException
- Returns:
- the SQL statement
-
setSQL
Description copied from interface:JdbcException
INTERNAL- Specified by:
setSQL
in interfaceJdbcException
- Parameters:
sql
- to set
-
toString
Description copied from interface:JdbcException
Returns the class name, the message, and in the server mode, the stack trace of the server- Specified by:
toString
in interfaceJdbcException
- Overrides:
toString
in classThrowable
- Returns:
- the string representation
-