|
|||||||||||
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 org.objectweb.cjdbc.common.exceptions.driver.protocol.SerializableException org.objectweb.cjdbc.common.exceptions.driver.protocol.BackendDriverException
This class is an SQLException (typically from backend) made serializable.
Field Summary |
Fields inherited from class org.objectweb.cjdbc.common.exceptions.driver.protocol.SerializableException |
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
BackendDriverException(CJDBCInputStream in)
|
|
BackendDriverException(java.lang.Throwable start)
Converts a chain of Throwables to a new chain of SerializableException starting with a BackendDriverException . |
Method Summary | |
private static SerializableException |
convertNext(java.lang.Throwable regularEx)
Get the first cause found (new or old style), and convert it to a new BackendDriverException object (which is Serializable) |
Methods inherited from class org.objectweb.cjdbc.common.exceptions.driver.protocol.SerializableException |
convertStackTrace, fillInStackTrace, getErrorCode, getSerializableStackTrace, getSQLState, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, sendToStream, setErrorCode, setSQLState, setStackTrace |
Methods inherited from class java.lang.Throwable |
getCause, getLocalizedMessage, getMessage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BackendDriverException(CJDBCInputStream in) throws java.io.IOException
SerializableException.SerializableException(CJDBCInputStream)
public BackendDriverException(java.lang.Throwable start)
BackendDriverException
. The returned chain
has the same length. We don't use super's method but re-implement it since
we want to also convert SQLException old-style chaining into a new style
chain. "SyntheticSQLException-s" from
SQLExceptionFactory
also
currently use old style chaining (with setNextException).
start
- head of chain to convert.SerializableException.SerializableException(Throwable)
Method Detail |
private static SerializableException convertNext(java.lang.Throwable regularEx)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |