org.jdesktop.wonderland.common.messages
Class ErrorMessage

java.lang.Object
  extended by org.jdesktop.wonderland.common.messages.Message
      extended by org.jdesktop.wonderland.common.messages.ResponseMessage
          extended by org.jdesktop.wonderland.common.messages.ErrorMessage
All Implemented Interfaces:
java.io.Serializable

public class ErrorMessage
extends ResponseMessage

Report an error to a client.

Author:
jkaplan
See Also:
Serialized Form

Constructor Summary
ErrorMessage(MessageID messageID)
          Create a new error message in response to the a request message with the given id.
ErrorMessage(MessageID messageID, java.lang.String errorMessage)
          Create a new error message in response to the a request message with the given id.
ErrorMessage(MessageID messageID, java.lang.String errorMessage, java.lang.Throwable errorCause)
          Create a new error message in response to a request message with the given id.
ErrorMessage(MessageID messageID, java.lang.Throwable errorCause)
          Create a new error message in response to the a request message with the given id.
 
Method Summary
 java.lang.Throwable getErrorCause()
          Get the error cause
 java.lang.String getErrorMessage()
          Get the error message
 void setErrorCause(java.lang.Throwable errorCause)
          Set the error cause
 void setErrorMessage(java.lang.String errorMessage)
          Set the error message
 
Methods inherited from class org.jdesktop.wonderland.common.messages.Message
getMessageID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorMessage

public ErrorMessage(MessageID messageID)
Create a new error message in response to the a request message with the given id.

Parameters:
messageID - the ID of the request message

ErrorMessage

public ErrorMessage(MessageID messageID,
                    java.lang.String errorMessage)
Create a new error message in response to the a request message with the given id.

Parameters:
messageID - the ID of the request message
errorMessage - the error message

ErrorMessage

public ErrorMessage(MessageID messageID,
                    java.lang.Throwable errorCause)
Create a new error message in response to the a request message with the given id.

Parameters:
messageID - the ID of the request message
errorCause - the cause of the error

ErrorMessage

public ErrorMessage(MessageID messageID,
                    java.lang.String errorMessage,
                    java.lang.Throwable errorCause)
Create a new error message in response to a request message with the given id.

Parameters:
messageID - the ID of the request message
errorMessage - the error messsage
errorCause - the cause of the error
Method Detail

getErrorMessage

public java.lang.String getErrorMessage()
Get the error message

Returns:
the error message

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Set the error message

Parameters:
errorMessage - the error message

getErrorCause

public java.lang.Throwable getErrorCause()
Get the error cause

Returns:
the error cause

setErrorCause

public void setErrorCause(java.lang.Throwable errorCause)
Set the error cause

Parameters:
errorCause - the error cause


Open Wonderland - http://openwonderland.org