HOME

com.ireasoning.protocol
Class ErrorMsg

java.lang.Object
  extended by com.ireasoning.protocol.ErrorMsg
All Implemented Interfaces:
Msg, java.io.Serializable
Direct Known Subclasses:
TimeoutErrorMsg

public class ErrorMsg
extends java.lang.Object
implements Msg

This class represents an error occurred.

See Also:
Serialized Form

Field Summary
static int TIMEOUT_ERROR
           
 
Fields inherited from interface com.ireasoning.protocol.Msg
ERROR_TYPE
 
Constructor Summary
ErrorMsg(java.lang.Exception e)
          Constructs a new ErrorMsg with passed Exception instance e
ErrorMsg(java.lang.Exception e, java.lang.String msg)
          Constructs a new ErrorMsg with passed Exception instance e and error description msg
 
Method Summary
 int getErrorCode()
           
 java.lang.String getErrorString()
          Returns the error description
 java.lang.Exception getException()
          Returns the Exception instance
 int getType()
          Returns the message type
 void setErrorCode(int errorCode)
           
 void setErrorString(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMEOUT_ERROR

public static final int TIMEOUT_ERROR
See Also:
Constant Field Values
Constructor Detail

ErrorMsg

public ErrorMsg(java.lang.Exception e)
Constructs a new ErrorMsg with passed Exception instance e


ErrorMsg

public ErrorMsg(java.lang.Exception e,
                java.lang.String msg)
Constructs a new ErrorMsg with passed Exception instance e and error description msg

Method Detail

getException

public java.lang.Exception getException()
Returns the Exception instance


getErrorString

public java.lang.String getErrorString()
Returns the error description


setErrorString

public void setErrorString(java.lang.String s)

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int errorCode)

getType

public int getType()
Returns the message type

Specified by:
getType in interface Msg

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.