| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.jpox.exceptions.JPOXException
All known Subclasses: org.jpox.store.exceptions.TableMismatchException, org.jpox.exceptions.JPOXObjectNotFoundException, org.jpox.exceptions.RollbackStateTransitionException, org.jpox.exceptions.JPOXOptimisticException, org.jpox.exceptions.ClassNotResolvedException, org.jpox.state.IllegalStateTransitionException, org.jpox.store.poid.PoidException, org.jpox.store.exceptions.NotYetFlushedException, org.jpox.exceptions.JPOXUserException, org.jpox.store.query.NoQueryResultsException, org.jpox.transaction.JPOXTransactionException, org.jpox.exceptions.JPOXDataStoreException, org.jpox.sco.exceptions.QueryUnownedSCOException,
JPOXException | public class JPOXException extends RuntimeException (Code) | | Base exception thrown by JPOX.
version: $Revision: 1.2 $ |
Field Summary | |
Object | failed The object being processed when the error was encountered (optional). | boolean | fatal Flag defining if this exception is fatal, or could be retried with the possibility of success. | Throwable[] | nested |
Constructor Summary | |
public | JPOXException() Constructs a new exception without a detail message. | public | JPOXException(String msg) Constructs a new exception with the specified detail message. | public | JPOXException(String msg, Throwable[] nested) Constructs a new exception with the specified detail message and nested Throwable s. | public | JPOXException(String msg, Throwable nested) Constructs a new exception with the specified detail message and nested Throwable . | public | JPOXException(String msg, Object failed) Constructs a new exception with the specified detail message and failed object. | public | JPOXException(String msg, Throwable[] nested, Object failed) Constructs a new exception with the specified detail
message, nested Throwable s, and failed object. | public | JPOXException(String msg, Throwable nested, Object failed) Constructs a new exception with the specified detail message, nested Throwable ,
and failed object. |
failed | Object failed(Code) | | The object being processed when the error was encountered (optional).
|
fatal | boolean fatal(Code) | | Flag defining if this exception is fatal, or could be retried with the possibility of success.
|
JPOXException | public JPOXException()(Code) | | Constructs a new exception without a detail message.
|
JPOXException | public JPOXException(String msg)(Code) | | Constructs a new exception with the specified detail message.
Parameters: msg - the detail message. |
JPOXException | public JPOXException(String msg, Throwable[] nested)(Code) | | Constructs a new exception with the specified detail message and nested Throwable s.
Parameters: msg - the detail message. Parameters: nested - the nested Throwable[] . |
JPOXException | public JPOXException(String msg, Throwable nested)(Code) | | Constructs a new exception with the specified detail message and nested Throwable .
Parameters: msg - the detail message. Parameters: nested - the nested Throwable . |
JPOXException | public JPOXException(String msg, Object failed)(Code) | | Constructs a new exception with the specified detail message and failed object.
Parameters: msg - the detail message. Parameters: failed - the failed object. |
JPOXException | public JPOXException(String msg, Throwable[] nested, Object failed)(Code) | | Constructs a new exception with the specified detail
message, nested Throwable s, and failed object.
Parameters: msg - the detail message. Parameters: nested - the nested Throwable[] . Parameters: failed - the failed object. |
JPOXException | public JPOXException(String msg, Throwable nested, Object failed)(Code) | | Constructs a new exception with the specified detail message, nested Throwable ,
and failed object.
Parameters: msg - the detail message. Parameters: nested - the nested Throwable . Parameters: failed - the failed object. |
getCause | public synchronized Throwable getCause()(Code) | | Return the first nested exception (if any), otherwise null.
the first or only nested Throwable. |
getFailedObject | public Object getFailedObject()(Code) | | The exception may include a failed object.
the failed object. |
getNestedExceptions | public Throwable[] getNestedExceptions()(Code) | | The exception may have been caused by multiple exceptions in the runtime.
If multiple objects caused the problem, each failed object will have its
own Exception .
the nested Throwable array. |
isFatal | public boolean isFatal()(Code) | | Accessor for whether the exception is fatal, or retriable.
Whether it is fatal |
printStackTrace | public void printStackTrace()(Code) | | Prints this Exception and its backtrace to the standard
error output. Print nested Throwables' stack trace as well.
|
printStackTrace | public synchronized void printStackTrace(java.io.PrintStream s)(Code) | | Prints this Exception and its backtrace to the
specified print stream. Print nested Throwables' stack trace as well.
Parameters: s - PrintStream to use for output |
printStackTrace | public synchronized void printStackTrace(java.io.PrintWriter s)(Code) | | Prints this Exception and its backtrace to the
specified print writer. Print nested Throwables' stack trace as well.
Parameters: s - PrintWriter to use for output |
setFatal | public JPOXException setFatal()(Code) | | Method to set the exception as being fatal.
Returns the exception so that user code can call
"throw new JPOXException(...).setFatal();"
This exception (for convenience) |
|
|