com.cometway.ak
Class AgentStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.cometway.ak.AgentStateException
All Implemented Interfaces:
java.io.Serializable

public class AgentStateException
extends java.lang.RuntimeException

This exception is thrown by AgentController when the requested operation is illegal from its agent's current state.

See Also:
Serialized Form

Constructor Summary
AgentStateException(java.lang.String message)
          Constructor for this exception.
AgentStateException(java.lang.String message, java.lang.Exception originalException)
          Constructor for this exception.
 
Method Summary
 java.lang.Exception getOriginalException()
          Returns a reference to the orignal exception associated with this exception.
 
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

AgentStateException

public AgentStateException(java.lang.String message)
Constructor for this exception.

Parameters:
message - Message associated with this exception.

AgentStateException

public AgentStateException(java.lang.String message,
                           java.lang.Exception originalException)
Constructor for this exception.

Parameters:
message - Message associated with this exception.
originalException - The original exception associated with this exception.
Method Detail

getOriginalException

public java.lang.Exception getOriginalException()
Returns a reference to the orignal exception associated with this exception.