|
||||||||
| 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.
| Field Summary | |
|---|---|
static java.lang.String |
HIDE_SQL
If the SQL statement contains this text, then it is never added to the SQL 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. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
Get the detail error message. |
java.lang.Throwable |
getOriginalCause()
INTERNAL |
java.lang.String |
getOriginalMessage()
INTERNAL |
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 |
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, 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 |
| Field Detail |
|---|
public static final java.lang.String HIDE_SQL
| 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 reasonsql - the SQL statementstate - the SQL stateerrorCode - the error codecause - the exception that was the reason for this exceptionstackTrace - the stack trace| Method Detail |
|---|
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getOriginalMessage()
public void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter s)
printStackTrace in class java.lang.Throwables - the print writerpublic void printStackTrace(java.io.PrintStream s)
printStackTrace in class java.lang.Throwables - 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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||