uk.org.ury.protocol.exceptions
Class InvalidMessageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by uk.org.ury.protocol.exceptions.InvalidMessageException
All Implemented Interfaces:
java.io.Serializable

public class InvalidMessageException
extends java.lang.Exception

Generic exception thrown when a protocol function cannot process a message due to an issue with the message.

Author:
Matt Windsor
See Also:
Serialized Form

Constructor Summary
InvalidMessageException(java.lang.String reason)
          Construct a new InvalidMessageException with a reason.
 
Method Summary
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidMessageException

public InvalidMessageException(java.lang.String reason)
Construct a new InvalidMessageException with a reason.

Parameters:
reason - The reason for throwing the exception.