com.swath
Class CommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.swath.SwathException
com.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
| 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 |
CommandException
public CommandException(CommandIfc command,
java.lang.String error)
- Constructor.
- Parameters:
command - The command.error - The error text.- Since:
- SWATH 1.6
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