public class MessageParsingException
extends java.lang.RuntimeException
MessageParsingException
when an incorrect JSON interpretation of any Message
is being parsed.Modifier and Type | Field and Description |
---|---|
static int |
INVALID_MSG_TYPE
This code is assigned if the message type is not supported.
|
Constructor and Description |
---|
MessageParsingException(java.lang.String message)
Constructs a new runtime exception with the specified detail message.
|
MessageParsingException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new runtime exception with the specified detail message and cause.
|
MessageParsingException(java.lang.Throwable cause)
Constructs a new runtime exception with the specified cause.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Method returns code for the current error.
|
public static final int INVALID_MSG_TYPE
public MessageParsingException(java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.message
- The detail message. The detail message is saved for later retrieval by
the Throwable.getMessage()
method.public MessageParsingException(java.lang.Throwable cause)
cause
- the cause (which is saved for later retrieval by
the Throwable.getCause()
method).
(A null
value is permitted, and indicates that
the cause is nonexistent or unknown.)public MessageParsingException(java.lang.String message, java.lang.Throwable cause)
message
- The detail message. The detail message is saved for later retrieval by
the Throwable.getMessage()
method.cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method).
(A null
value is permitted, and indicates that the cause is nonexistent or unknown.)