|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.h2.jdbc.JdbcSQLException
public class JdbcSQLException
Represents a database exception.
Constructor Summary | |
---|---|
JdbcSQLException(java.lang.String message,
java.lang.String sql,
java.lang.String state,
int errorCode,
java.lang.Throwable cause,
java.lang.String stackTrace)
Creates a SQLException a message, sqlstate and cause. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Get the detail error message. |
java.lang.Throwable |
getOriginalCause()
INTERNAL |
java.lang.String |
getOriginalMessage()
INTERNAL |
java.lang.Object |
getPayload()
Get the error related payload object. |
java.lang.String |
getSQL()
Returns the SQL statement. |
void |
printStackTrace()
Prints the stack trace to the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints the stack trace to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints the stack trace to the specified print writer. |
void |
setPayload(java.lang.Object payload)
Set the error related payload object. |
void |
setSQL(java.lang.String sql)
INTERNAL |
java.lang.String |
toString()
Returns the class name, the message, and in the server mode, the stack trace of the server |
Methods inherited from class java.sql.SQLException |
---|
getErrorCode, getNextException, getSQLState, iterator, setNextException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JdbcSQLException(java.lang.String message, java.lang.String sql, java.lang.String state, int errorCode, java.lang.Throwable cause, java.lang.String stackTrace)
message
- the reasonstate
- the SQL statecause
- the exception that was the reason for this exceptionMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getOriginalMessage()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
s
- the print writerpublic void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
s
- the print streampublic java.lang.Throwable getOriginalCause()
public java.lang.String getSQL()
public void setSQL(java.lang.String sql)
public java.lang.String toString()
toString
in class java.lang.Throwable
public java.lang.Object getPayload()
public void setPayload(java.lang.Object payload)
payload
- the new payload
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |