public class MessageException extends DiameterException
| Constructor and Description |
|---|
MessageException(ResultCode rc)
Creates a new MessageException for the specified ResultCode and
a default error message based on the result code.
|
MessageException(ResultCode rc,
String msg)
Creates a new MessageException for the specified ResultCode and
error message.
|
| Modifier and Type | Method and Description |
|---|---|
Answer |
createAnswer(Request req)
Creates a new Answer message for an invalid Request.
|
ResultCode |
getResultCode()
Returns the ResultCode indicating the error.
|
static MessageException |
unableToComply(String msg)
Convenience method that returns a new UNABLE_TO_COMPLY MessageException.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MessageException(ResultCode rc, String msg)
rc - the Diameter result codemsg - the error messagepublic MessageException(ResultCode rc)
rc - the Diameter result codepublic ResultCode getResultCode()
public Answer createAnswer(Request req)
req - the Request that was invalidpublic static MessageException unableToComply(String msg)
msg - the error cause