|
||||||||||
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 | +--com.objectwave.persist.QueryException
Little more than an exception wrapper class. addInfo attribute could contain the acutal SQL that caused the exception. originalException attribute is the source exception that was caught that threw this exception.
Constructor Summary | |
QueryException(java.lang.String text,
java.lang.Exception e)
Create a new query exception to hide the actual problem. |
|
QueryException(java.lang.String text,
java.lang.Exception e,
java.lang.String additionalInfo)
Create a new query exception to hide the actual problem. |
Method Summary | |
java.lang.String |
getAdditionalInfo()
Additional information may be provided to assist with debugging efforts. |
java.lang.Exception |
getOriginalException()
If an exception occurs within JavaGrinder it will eventually be wrapped by an instance of this class. |
boolean |
isRetryPossible()
|
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream stream)
|
void |
printStackTrace(java.io.PrintWriter stream)
|
void |
setRetryPossible(boolean b)
|
java.lang.String |
toString()
Display a nice version of this exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QueryException(java.lang.String text, java.lang.Exception e)
text
- The text to display.e
- Exception The reason for creating this object.public QueryException(java.lang.String text, java.lang.Exception e, java.lang.String additionalInfo)
text
- The text to display.e
- Exception The reason for creating this object.additionalInfo
- Not text to normally display, but may provide more information about the problem.Method Detail |
public java.lang.String getAdditionalInfo()
public java.lang.Exception getOriginalException()
public void printStackTrace(java.io.PrintWriter stream)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream stream)
printStackTrace
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
public void setRetryPossible(boolean b)
public boolean isRetryPossible()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |