edu.harvard.deas.hyperenc
Class MessageParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.harvard.deas.hyperenc.MessageParseException
- All Implemented Interfaces:
- Serializable
public class MessageParseException
- extends Exception
Thrown when the parsing of a message fails. The message that triggered the
exception (by virtue of containing some error) is included, and accessible
via the getErroneousMessage
message.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MessageParseException
public MessageParseException(String message,
String erroneousMessage)
- Constructs a new MessageParseException with the given detail message.
- Parameters:
message
- the detail messageerroneousMessage
- the message that triggered the exception
MessageParseException
public MessageParseException(String message,
String erroneousMessage,
Throwable cause)
- Constructs a new MessageParseException with the given detail message.
- Parameters:
message
- the detail messageerroneousMessage
- the message that triggered the exceptioncause
- the cause (A null value is permitted, and indicates that the cause
is nonexistent or unknown.)
getErroneousMessage
public String getErroneousMessage()
- Returns the message that triggered this exception.
- Returns:
- the message that triggered this exception