com.cometway.states
Class CommandException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.cometway.states.CommandException
All Implemented Interfaces:
java.io.Serializable

public class CommandException
extends java.lang.Exception

This exception is thrown by CommandInterface.execute when there is a problem.

See Also:
Serialized Form

Constructor Summary
CommandException(java.lang.String message)
          Constructor for this exception.
CommandException(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

CommandException

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

Parameters:
message - Message associated with this exception.

CommandException

public CommandException(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.