SQLException

Represents a database exception.

Methods
String getMessage()
Get the detail error message.
String getMessage()
Get the detail error message.
Returns:
the message
Object getPayload()
Get the error related payload object.
Object getPayload()
Get the error related payload object.
Returns:
the payload
String getSQL()
Returns the SQL statement.
String getSQL()
Returns the SQL statement.
Returns:
the SQL statement
void printStackTrace()
Prints the stack trace to the standard error stream.
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(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.
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.
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
String toString()
Returns the class name, the message, and in the server mode, the stack trace of the server
Returns:
the string representation