|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.purl.xnode.XNodeException
public class XNodeException
Signals that an exception has occurred during XNode processing. This includes
an option to capture the processor state when the XNodeException occurred, as
defined in XNodeState.
The XNode API (the package org.purl.xnode.*, both its source code and documentation), are released under the Apache 2.0 License. For more details, check the LICENSE file contained with the distribution, or see The Ceryle Project for more information. It is distributed with no warranty.
XNodeState,
Exception,
Serialized Form| Constructor Summary | |
|---|---|
XNodeException(Exception exception)
Constructor for XNodeException tunnelling an original Exception. |
|
XNodeException(String message)
Constructor for XNodeException provided with an error String message. |
|
XNodeException(String message,
Exception exception)
Constructor for XNodeException including a message and tunnelling an original Exception. |
|
XNodeException(XNodeState state,
Exception exception)
Constructor for XNodeException tunnelling an original Exception, including an XNodeState state indicator. |
|
XNodeException(XNodeState state,
String message)
Constructor for XNodeException provided with an int errorcode and an error String message. |
|
XNodeException(XNodeState state,
String message,
Exception exception)
Constructor for XNodeException tunnelling an original Exception, including a state indicator, and a message String. |
|
| Method Summary | |
|---|---|
Exception |
getException()
Returns the tunnelled Exception, if any. |
String |
getMessage()
Returns the message for this XNodeException. |
XNodeState |
getState()
Returns the processor state at the time of the Exception. |
String |
toString()
Overrides toString() to return a String representation of this XNodeException, substituting any tunnelled Exception if available. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XNodeException(String message)
message - the exception message.
public XNodeException(XNodeState state,
String message)
state - the processing state when the Exception occurred.message - the exception message.for processing state codes.public XNodeException(Exception exception)
exception - the original Exception.
public XNodeException(XNodeState state,
Exception exception)
state - the processing state when the Exception occurred.exception - the original Exception.for processing state codes.
public XNodeException(String message,
Exception exception)
message - the Exception message String.exception - the original Exception.
public XNodeException(XNodeState state,
String message,
Exception exception)
state - the processing state when the Exception occurred.message - the Exception message String.exception - the original Exception.for processing state codes.| Method Detail |
|---|
public Exception getException()
public XNodeState getState()
XNodeStatepublic String getMessage()
If the tunnelled Exception and this XNodeException has no message of its own, returns the message of the tunnelled Exception.
getMessage in class Throwablepublic String toString()
toString in class Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||