HOME

com.ireasoning.protocol
Class ErrorMsg

java.lang.Object
  |
  +--com.ireasoning.protocol.ErrorMsg
All Implemented Interfaces:
Msg, Serializable

public class ErrorMsg
extends Object
implements Msg

This class represents an error occurred.

See Also:
Serialized Form

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

Constructor Detail

ErrorMsg

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

ErrorMsg

public ErrorMsg(Exception e,
                String msg)
Constructs a new ErrorMsg with passed Exception instance e and error description msg
Method Detail

getException

public Exception getException()
Returns the Exception instance

getErrorString

public String getErrorString()
Returns the error description

getType

public int getType()
Returns the message type
Specified by:
getType in interface Msg

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.