|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--at.gv.egovernment.moa.spss.MOAException
Base class of MOA specific exceptions.
This class has the ability to wrap other exceptions which may be seen
as the root cause for this exception. A similar mechanism is in place
since JDK1.4 (see the getClause()
method) but will not be used
because of required compatibility with JDK1.3.
Constructor Summary | |
MOAException(String messageId,
Object[] parameters)
Create a MOAException . |
|
MOAException(String messageId,
Object[] parameters,
Throwable wrapped)
Create a MOAException . |
Method Summary | |
String |
getMessageId()
Returns the message ID of this exception. |
Throwable |
getWrapped()
Returns the exception wrapped by this MOAException . |
void |
printStackTrace()
Print a stack trace of this exception to System.err . |
void |
printStackTrace(PrintStream s)
Print a stack trace of this exception, including the wrapped exception. |
void |
printStackTrace(PrintWriter s)
Print a stack trace of this exception, including the wrapped exception. |
org.w3c.dom.Element |
toErrorResponse()
Convert this MOAException to an ErrorResponse
element from the MOA namespace. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MOAException(String messageId, Object[] parameters)
MOAException
.messageId
- The message ID of the message contained in the created
MOAException
.parameters
- The parameters needed to fill in the message arguments.public MOAException(String messageId, Object[] parameters, Throwable wrapped)
MOAException
.messageId
- The message ID of the message contained in the created
MOAException
.parameters
- The parameters needed to fill in the message arguments.wrapped
- The exception wrapped by the created
MOAException
.Method Detail |
public String getMessageId()
public Throwable getWrapped()
MOAException
.null
, if none was provided at construction time.public org.w3c.dom.Element toErrorResponse()
MOAException
to an ErrorResponse
element from the MOA namespace.ErrorResponse
element, containing the subelements
ErrorCode
and Info
required by the MOA schema.public void printStackTrace()
System.err
.printStackTrace
in class Throwable
Throwable.printStackTrace()
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
s
- The stream to write the stack trace to.Throwable.printStackTrace(java.io.PrintStream)
public void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
s
- The stream to write the stacktrace to.Throwable.printStackTrace(java.io.PrintWriter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |