edu.cmu.aura.service.rpc
Class ExceptionEnvelope

java.lang.Object
  |
  +--edu.cmu.aura.service.rpc.ExceptionEnvelope

public class ExceptionEnvelope
extends java.lang.Object

Used to carry exceptions (errors) back to the method caller.


Constructor Summary
ExceptionEnvelope()
          Create a new ExceptionEnvelope.
 
Method Summary
 int getErrorCode()
          Get the error code for this exception.
 java.lang.String getMessage()
          Get the exception message that this exception carries.
 void setErrorCode(int errorCode)
          Set the error code for this exception.
 void setMessage(java.lang.String message)
          Set the error message that this exception carries.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionEnvelope

public ExceptionEnvelope()
Create a new ExceptionEnvelope.
Method Detail

setMessage

public void setMessage(java.lang.String message)
Set the error message that this exception carries.

getMessage

public java.lang.String getMessage()
Get the exception message that this exception carries.

setErrorCode

public void setErrorCode(int errorCode)
Set the error code for this exception.
Parameters:
errorCode - the error code for this exception.

getErrorCode

public int getErrorCode()
Get the error code for this exception.
Returns:
the error code for this exception.