|
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
public class 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(java.lang.String aMessage)
Constructs an instance of NetKernelException with the specified detail message. |
|
NetKernelError(java.lang.String aId,
java.lang.String aMessage,
java.lang.String aRequestId)
Constructs an instance of NetKernelException with the specified Id, detail message, and
request id. |
|
| Method Summary | |
|---|---|
void |
addCause(java.lang.Throwable aThrowable)
Adds an exception cause to this exception |
void |
appendXML(java.io.Writer aWriter)
Recursively output the state of this exception and its causes to the given writer |
java.lang.Throwable |
getCause()
|
java.lang.String |
getDeepestId()
Return the id of the deepest underlying cause of this exception |
java.lang.String |
getId()
|
static void |
setTraceDepth(int aDepth)
configure the depth that java exceptions stack traces will be captured |
java.lang.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(java.lang.String aMessage)
NetKernelException with the specified detail message.
aMessage - the detail message.
public NetKernelError(java.lang.String aId,
java.lang.String aMessage,
java.lang.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 exception| Method Detail |
|---|
public java.lang.String getId()
public void addCause(java.lang.Throwable aThrowable)
public java.lang.String getDeepestId()
IXMLException
getDeepestId in interface IXMLException
public void appendXML(java.io.Writer aWriter)
throws java.io.IOException
appendXML in interface IXMLExceptionaWriter - the writer to write exception to
java.io.IOException - thrown if we fail to write to writerpublic java.lang.String toString()
toString in class java.lang.Throwablepublic static void setTraceDepth(int aDepth)
public java.lang.Throwable getCause()
getCause in class java.lang.Throwable
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||