com.swath
Class CommandException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.swath.SwathException
              extended bycom.swath.CommandException
All Implemented Interfaces:
java.io.Serializable

public class CommandException
extends com.swath.SwathException

Command exception.
Thrown when the current command execution fails for some reason. By catching this exception, you have the possibility to recover and continue the script execution.
You can throw this exception from your own commands.

Since:
SWATH 1.6
See Also:
Serialized Form

Constructor Summary
CommandException(CommandIfc command, java.lang.String error)
          Constructor.
 
Method Summary
 CommandIfc getCommand()
          Returns the command.
 java.lang.String getCommandName()
          Returns the command name.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandException

public CommandException(CommandIfc command,
                        java.lang.String error)
Constructor.

Parameters:
command - The command.
error - The error text.
Since:
SWATH 1.6
Method Detail

getCommand

public CommandIfc getCommand()
Returns the command.

Returns:
The command.
Since:
SWATH 1.7

getCommandName

public java.lang.String getCommandName()
Returns the command name.

Returns:
The command name.
Since:
SWATH 1.7