public class JdbcSQLException extends SQLException
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
HIDE_SQL
If the SQL statement contains this text, then it is never added to the
SQL exception.
|
| 构造器和说明 |
|---|
JdbcSQLException(String message,
String sql,
String state,
int errorCode,
Throwable cause,
String stackTrace)
Creates a SQLException.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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 在类中 Throwablepublic String getOriginalMessage()
public void printStackTrace()
printStackTrace 在类中 Throwablepublic void printStackTrace(PrintWriter s)
printStackTrace 在类中 Throwables - the print writerpublic void printStackTrace(PrintStream s)
printStackTrace 在类中 Throwables - the print streampublic Throwable getOriginalCause()
public String getSQL()
public void setSQL(String sql)
Copyright © 2017. All rights reserved.