edu.harvard.deas.hyperenc
Class MessageParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
MessageParseException(String message, String erroneousMessage)
          Constructs a new MessageParseException with the given detail message.
MessageParseException(String message, String erroneousMessage, Throwable cause)
          Constructs a new MessageParseException with the given detail message.
 
Method Summary
 String getErroneousMessage()
          Returns the message that triggered this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageParseException

public MessageParseException(String message,
                             String erroneousMessage)
Constructs a new MessageParseException with the given detail message.

Parameters:
message - the detail message
erroneousMessage - 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 message
erroneousMessage - the message that triggered the exception
cause - the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getErroneousMessage

public String getErroneousMessage()
Returns the message that triggered this exception.

Returns:
the message that triggered this exception