public class MOAIDException extends Exception
| Constructor and Description |
|---|
MOAIDException(String messageId,
Object[] parameters)
Create a new
MOAIDException. |
MOAIDException(String messageId,
Object[] parameters,
Throwable wrapped)
Create a new
MOAIDException. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessageId() |
Throwable |
getWrapped() |
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.
|
Element |
toErrorResponse()
Convert this
MOAIDException to an ErrorResponse
element from the MOA namespace. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic MOAIDException(String messageId, Object[] parameters)
MOAIDException.messageId - The identifier of the message associated with this
exception.parameters - Additional message parameters.public MOAIDException(String messageId, Object[] parameters, Throwable wrapped)
MOAIDException.messageId - The identifier of the message associated with this
MOAIDException.parameters - Additional message parameters.wrapped - The exception wrapped by this
MOAIDException.public void printStackTrace()
System.err.printStackTrace in class ThrowableThrowable.printStackTrace()public void printStackTrace(PrintStream s)
printStackTrace in class Throwables - The stream to write the stack trace to.Throwable.printStackTrace(java.io.PrintStream)public void printStackTrace(PrintWriter s)
printStackTrace in class Throwables - The stream to write the stacktrace to.Throwable.printStackTrace(java.io.PrintWriter)public String getMessageId()
public Throwable getWrapped()
public Element toErrorResponse()
MOAIDException to an ErrorResponse
element from the MOA namespace.ErrorResponse element, containing the subelements
ErrorCode and Info required by the MOA schema.Copyright © 2016. All Rights Reserved.