|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.sql.SQLException org.objectweb.cjdbc.common.exceptions.driver.DriverSQLException
FIXME: this class relies on "multiple dispatch", which does not exist in Java (doh!). The current workaround it to cast properly at each call site. The definitive fix is to use instanceof.
Field Summary |
Fields inherited from class java.sql.SQLException |
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
DriverSQLException()
|
|
DriverSQLException(java.lang.Exception cause)
Missing message constructor: let's borrow message from cause. |
|
DriverSQLException(SerializableException cause)
Missing message constructor: let's borrow message from cause. |
|
DriverSQLException(java.sql.SQLException cause)
Deprecated. |
|
DriverSQLException(java.lang.String reason)
|
|
DriverSQLException(java.lang.String message,
java.lang.Exception cause)
Creates a new DriverSQLException around an exception of a
type not specifically handled elsewhere. |
|
DriverSQLException(java.lang.String message,
SerializableException cause)
Creates a new DriverSQLException around a
SerializableException received from controller, itself converted from an
SQLException in most cases. |
|
DriverSQLException(java.lang.String message,
java.sql.SQLException cause)
Deprecated. |
|
DriverSQLException(java.lang.String reason,
java.lang.String sQLState)
|
|
DriverSQLException(java.lang.String reason,
java.lang.String sQLState,
int vendorCode)
|
Method Summary | |
void |
printStackTrace()
Overrides super method so we print the serializable stack trace of next exceptions in the chain (if they use our serializable stack trace) |
void |
printStackTrace(java.io.PrintStream s)
Overrides super method so we print the serializable stack trace of next exceptions in the chain (if they use our serializable stack trace) |
void |
printStackTrace(java.io.PrintWriter s)
Overrides super method so we print the serializable stack trace of next exceptions in the chain (if they use our serializable stack trace) |
Methods inherited from class java.sql.SQLException |
getErrorCode, getNextException, getSQLState, setNextException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DriverSQLException()
SQLException.SQLException()
public DriverSQLException(java.lang.String reason)
SQLException.SQLException(java.lang.String)
public DriverSQLException(java.lang.String reason, java.lang.String sQLState)
SQLException.SQLException(java.lang.String, java.lang.String)
public DriverSQLException(java.lang.String reason, java.lang.String sQLState, int vendorCode)
SQLException.SQLException(java.lang.String, java.lang.String, int)
public DriverSQLException(java.lang.String message, SerializableException cause)
DriverSQLException
around a
SerializableException received from controller, itself converted from an
SQLException in most cases. So we set SQLState and vendorCode.
message
- messagecause
- exception from controller to wrappublic DriverSQLException(SerializableException cause)
cause
- exception to wrappublic DriverSQLException(java.lang.Exception cause)
cause
- exception to wrappublic DriverSQLException(java.lang.String message, java.lang.Exception cause)
DriverSQLException
around an exception of a
type not specifically handled elsewhere. Typically used for exceptions
internal to the driver.
message
- messagecause
- generic exception to wrappublic DriverSQLException(java.sql.SQLException cause)
DriverSQLException(String, SQLException)
public DriverSQLException(java.lang.String message, java.sql.SQLException cause) throws java.lang.IllegalArgumentException
message
- messagecause
- cause
java.lang.IllegalArgumentException
- alwaysMethod Detail |
public void printStackTrace(java.io.PrintStream s)
Throwable.printStackTrace(java.io.PrintStream)
public void printStackTrace()
Throwable.printStackTrace()
public void printStackTrace(java.io.PrintWriter s)
Throwable.printStackTrace(java.io.PrintWriter)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |