org.adougou.cline
Class CommandException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.adougou.cline.CommandException
- All Implemented Interfaces:
- java.io.Serializable
- public class CommandException
- extends java.lang.RuntimeException
If an unrecoverable error occurs when executing a command (eg. invalid
parameters etc.), a CommandException should be thrown that will
cleanly be handled by the prompt. The user can then retry the command
with the correct parameters, or atleast they will have an idea why the
command is failing.
- See Also:
- Serialized Form
|
Method Summary |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CommandException
public CommandException(java.lang.String error)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Throwable