public class JdbcSQLException
extends java.sql.SQLException
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HIDE_SQL
If the SQL statement contains this text, then it is never added to the
SQL exception.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTracepublic static final java.lang.String HIDE_SQL
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 tracepublic 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