|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
com.ten60.netkernel.util.NetKernelError
NetKernel exception is a generic exception class used for most exceptions in the NetKernel. It is nestable and allows multiple exceptions to be nested at any depth. Its most important characteristic is that its state can be recursively dumped as XML giving a clear picture of an exception scenario is a document.
Constructor Summary | |
NetKernelError(String aMessage)
Constructs an instance of NetKernelException with the specified detail message. |
|
NetKernelError(String aId,
String aMessage,
String aRequestId)
Constructs an instance of NetKernelException with the specified Id, detail message, and
request id. |
Method Summary | |
void |
addCause(Throwable aThrowable)
Adds an exception cause to this exception |
void |
appendXML(Writer aWriter)
Recursively output the state of this exception and its causes to the given writer |
Throwable |
getCause()
|
String |
getDeepestId()
Return the id of the deepest underlying cause of this exception |
String |
getId()
|
static void |
setTraceDepth(int aDepth)
configure the depth that java exceptions stack traces will be captured |
String |
toString()
return XML representation of recursive exception pretty-printed with indent |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, 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 NetKernelError(String aMessage)
NetKernelException
with the specified detail message.
aMessage
- the detail message.public NetKernelError(String aId, String aMessage, String aRequestId)
NetKernelException
with the specified Id, detail message, and
request id.
aId
- an id for the exceptionaMessage
- the detail message.aRequestId
- id of request that caused the exceptionMethod Detail |
public String getId()
public void addCause(Throwable aThrowable)
public String getDeepestId()
IXMLException
getDeepestId
in interface IXMLException
public void appendXML(Writer aWriter) throws IOException
appendXML
in interface IXMLException
aWriter
- the writer to write exception to
IOException
- thrown if we fail to write to writerpublic String toString()
public static void setTraceDepth(int aDepth)
public Throwable getCause()
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |