SQLException

Represents a database exception.

Methods
String getMessage()
Get the detail error message.
Object getPayload()
Get the error related payload object.
String getSQL()
Returns the SQL statement.
void printStackTrace()
Prints the stack trace to the standard error stream.
void printStackTrace(PrintWriter s)
Prints the stack trace to the specified print writer.
void printStackTrace(PrintStream s)
Prints the stack trace to the specified print stream.
void setPayload(Object payload)
Set the error related payload object.
String toString()
Returns the class name, the message, and in the server mode, the stack trace of the server

String getMessage()

Get the detail error message.

Returns:
the message

Object getPayload()

Get the error related payload object.

Returns:
the payload

String getSQL()

Returns the SQL statement.

Returns:
the SQL statement

void printStackTrace()

Prints the stack trace to the standard error stream.

void printStackTrace(PrintWriter s)

Prints the stack trace to the specified print writer.

Parameters:
s - the print writer

void printStackTrace(PrintStream s)

Prints the stack trace to the specified print stream.

Parameters:
s - the print stream

void setPayload(Object payload)

Set the error related payload object.

Parameters:
payload - the new payload

String toString()

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

Returns:
the string representation