public class JdbcSQLException extends SQLException
| Modifier and Type | Field and Description |
|---|---|
static String |
HIDE_SQL
If the SQL statement contains this text, then it is never added to the
SQL exception.
|
| Constructor and Description |
|---|
JdbcSQLException(String message,
String sql,
String state,
int errorCode,
Throwable cause,
String stackTrace)
Creates a SQLException.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Get the detail error message.
|
Throwable |
getOriginalCause()
INTERNAL
|
String |
getOriginalMessage()
INTERNAL
|
String |
getSQL()
Returns the SQL statement.
|
void |
printStackTrace()
Prints the stack trace to the standard error stream.
|
void |
printStackTrace(PrintStream s)
Prints the stack trace to the specified print stream.
|
void |
printStackTrace(PrintWriter s)
Prints the stack trace to the specified print writer.
|
void |
setSQL(String sql)
INTERNAL
|
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 String HIDE_SQL
public JdbcSQLException(String message, String sql, String state, int errorCode, Throwable cause, 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 String getMessage()
getMessage in class Throwablepublic String getOriginalMessage()
public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
printStackTrace in class Throwables - the print writerpublic void printStackTrace(PrintStream s)
printStackTrace in class Throwables - the print streampublic Throwable getOriginalCause()
public String getSQL()
public void setSQL(String sql)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.