|
|||||||||
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 net.sf.farrago.jdbc.FarragoJdbcUtil.FarragoSqlException
public static class FarragoJdbcUtil.FarragoSqlException
Exception thrown by Farrago JDBC driver.
The exception contains the original, undiluted exception for more detailed diagnostics. This is used by the testing infrastructure to ensure that the error occurs at the right (line, col) thru (line, col) position.
The original exception is returned by the getOriginalThrowable()
method, but will not be returned from the
standard SQLException.getNextException()
or Throwable.getCause()
methods; this
exception therefore behaves exactly like a regular SQLException
.
Field Summary | |
---|---|
private Throwable |
original
Original exception. |
private String |
originalStatement
|
private static long |
serialVersionUID
SerialVersionUID created with JDK 1.5 serialver tool. |
Constructor Summary | |
---|---|
FarragoJdbcUtil.FarragoSqlException(String reason,
Throwable original,
String originalStatement,
Throwable cause)
Creates an exception with a message and a record of the undiluted original exception. |
Method Summary | |
---|---|
String |
getOriginalStatement()
Returns the original statement. |
Throwable |
getOriginalThrowable()
Returns the original exception. |
private Object |
writeReplace()
Per Serializable API, provides a replacement object
to be written during serialization. |
Methods inherited from class java.sql.SQLException |
---|
getErrorCode, getNextException, getSQLState, setNextException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final Throwable original
private final String originalStatement
Constructor Detail |
---|
public FarragoJdbcUtil.FarragoSqlException(String reason, Throwable original, String originalStatement, Throwable cause)
reason
- A description of the exceptionoriginal
- Original exceptionoriginalStatement
- Original statementMethod Detail |
---|
public Throwable getOriginalThrowable()
public String getOriginalStatement()
private Object writeReplace()
Serializable
API, provides a replacement object
to be written during serialization.
This implementation converts this FarragoSqlException into an exception that looks similar but is serializable.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |