Top Description Fields Constructors Methods
org.h2.jdbc

public final Class JdbcSQLTransientException

extends SQLTransientException
implements JdbcException
Class Inheritance
All Implemented Interfaces
org.h2.jdbc.JdbcException
Imports
java.io.PrintStream, .PrintWriter, java.sql.SQLTransientException, org.h2.message.DbException

Represents a database exception.

Field Summary

Modifier and TypeField and Description
private String
private final String
private static final long
private String
private final String

Constructor Summary

AccessConstructor and Description
public
JdbcSQLTransientException(String
the reason
message
,
String
the SQL statement
sql
,
String
the SQL state
state
,
int
the error code
errorCode
,
Throwable
the exception that was the reason for this exception
cause
,
String
the stack trace
stackTrace
)

Creates a SQLTransientException.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

public String
public String
getSQL()

Implements org.h2.jdbc.JdbcException.getSQL.

Returns the SQL statement.

public void
printStackTrace(PrintWriter
PrintWriter to use for output
s
)

Overrides java.lang.Throwable.printStackTrace.

Prints this throwable and its backtrace to the specified print writer.

public void
printStackTrace(PrintStream
PrintStream to use for output
s
)

Overrides java.lang.Throwable.printStackTrace.

Prints this throwable and its backtrace to the specified print stream.

public void
setSQL(String
to set
sql
)

Implements org.h2.jdbc.JdbcException.setSQL.

INTERNAL

public String
toString()

Overrides java.lang.Throwable.toString.

Implements org.h2.jdbc.JdbcException.toString.

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

Field Detail

messageback to summary
private String message
originalMessageback to summary
private final String originalMessage
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.sql.SQLTransientException.serialVersionUID.

sqlback to summary
private String sql
stackTraceback to summary
private final String stackTrace

Hides java.lang.Throwable.stackTrace.

Constructor Detail

JdbcSQLTransientExceptionback to summary
public JdbcSQLTransientException(String message, String sql, String state, int errorCode, Throwable cause, String stackTrace)

Creates a SQLTransientException.

Parameters
message:String

the reason

sql:String

the SQL statement

state:String

the SQL state

errorCode:int

the error code

cause:Throwable

the exception that was the reason for this exception

stackTrace:String

the stack trace

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getOriginalMessageback to summary
public String getOriginalMessage()

Implements org.h2.jdbc.JdbcException.getOriginalMessage.

Doc from org.h2.jdbc.JdbcException.getOriginalMessage.

INTERNAL

Returns:String

original message

Annotations
@Override
getSQLback to summary
public String getSQL()

Implements org.h2.jdbc.JdbcException.getSQL.

Doc from org.h2.jdbc.JdbcException.getSQL.

Returns the SQL statement.

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

Returns:String

the SQL statement

Annotations
@Override
printStackTraceback to summary
public void printStackTrace(PrintWriter s)

Overrides java.lang.Throwable.printStackTrace.

Doc from java.lang.Throwable.printStackTrace.

Prints this throwable and its backtrace to the specified print writer.

Parameters
s:PrintWriter

PrintWriter to use for output

Annotations
@Override
printStackTraceback to summary
public void printStackTrace(PrintStream s)

Overrides java.lang.Throwable.printStackTrace.

Doc from java.lang.Throwable.printStackTrace.

Prints this throwable and its backtrace to the specified print stream.

Parameters
s:PrintStream

PrintStream to use for output

Annotations
@Override
setSQLback to summary
public void setSQL(String sql)

Implements org.h2.jdbc.JdbcException.setSQL.

Doc from org.h2.jdbc.JdbcException.setSQL.

INTERNAL

Parameters
sql:String

to set

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Implements org.h2.jdbc.JdbcException.toString.

Doc from org.h2.jdbc.JdbcException.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