org.jdesktop.wonderland.common.messages
Class ExtractMessageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.jdesktop.wonderland.common.messages.ExtractMessageException
All Implemented Interfaces:
java.io.Serializable

public class ExtractMessageException
extends java.io.IOException

An exception extracting a message. This exception includes the messageID of the message in error, in order to help when sending error responses.

Author:
jkaplan
See Also:
Serialized Form

Constructor Summary
ExtractMessageException(MessageID messageID, short clientID)
          Creates a new instance of ExtractMessageException with the given extracted message ID and client ID.
ExtractMessageException(MessageID messageID, short clientID, java.lang.Throwable cause)
          Constructs an instance of ExtractMessageException with the specified cause, message ID and client ID.
 
Method Summary
 short getClientID()
          Get the clientID of the message that could not be extracted
 MessageID getMessageID()
          Get the MessageID of the message that could not be extracted
 
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

ExtractMessageException

public ExtractMessageException(MessageID messageID,
                               short clientID)
Creates a new instance of ExtractMessageException with the given extracted message ID and client ID.

Parameters:
messageID - the extracted message id
clientID - the extracted client id

ExtractMessageException

public ExtractMessageException(MessageID messageID,
                               short clientID,
                               java.lang.Throwable cause)
Constructs an instance of ExtractMessageException with the specified cause, message ID and client ID.

Parameters:
messageID - the extracted message id
clientID - the extracted client id
cause - the cause of this error
Method Detail

getMessageID

public MessageID getMessageID()
Get the MessageID of the message that could not be extracted

Returns:
the messageID

getClientID

public short getClientID()
Get the clientID of the message that could not be extracted

Returns:
the clientID


Open Wonderland - http://openwonderland.org