Top Description Methods
org.h2.jdbc

public Interface JdbcException

Known Direct Implementers
org.h2.jdbc.JdbcSQLDataException, org.h2.jdbc.JdbcSQLException, org.h2.jdbc.JdbcSQLFeatureNotSupportedException, org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException, org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException, org.h2.jdbc.JdbcSQLNonTransientConnectionException, org.h2.jdbc.JdbcSQLNonTransientException, org.h2.jdbc.JdbcSQLSyntaxErrorException, org.h2.jdbc.JdbcSQLTimeoutException, org.h2.jdbc.JdbcSQLTransactionRollbackException, org.h2.jdbc.JdbcSQLTransientException

This interface contains additional methods for database exceptions.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the H2-specific error code
getErrorCode
()

Returns the H2-specific error code.

public String

Returns:

original message
getOriginalMessage
()

INTERNAL

public String

Returns:

the SQL statement
getSQL
()

Returns the SQL statement.

public void
setSQL(String
to set
sql
)

INTERNAL

public String

Returns:

the string representation
toString
()

Returns the class name, the message, and in the server mode, the stack trace of the server

Method Detail

getErrorCodeback to summary
public int getErrorCode()

Returns the H2-specific error code.

Returns:int

the H2-specific error code

getOriginalMessageback to summary
public String getOriginalMessage()

INTERNAL

Returns:String

original message

getSQLback to summary
public String getSQL()

Returns the SQL statement.

SQL statements that contain '--hide--' are not listed.

Returns:String

the SQL statement

setSQLback to summary
public void setSQL(String sql)

INTERNAL

Parameters
sql:String

to set

toStringback to summary
public String toString()

Returns the class name, the message, and in the server mode, the stack trace of the server

Returns:String

the string representation

Annotations
@Override