mondocommand
Class MondoFailure
java.lang.Object
java.lang.Throwable
java.lang.Exception
mondocommand.MondoFailure
- All Implemented Interfaces:
- Serializable
public class MondoFailure
- extends Exception
Convenience class for dealing with failure scenarios.
Using MondoFailure is not required in order to use the MondoCommand
library, but smart use of the exception can allow you to design clean
API's that can gracefully handle failure scenarios in commands
(such as permissions, incorrect world state, etc) by stopping the command
execution and also propagating a message outwards along with the failure.
See the MondoCommand home page for more information on how this exception
can be used.
- Author:
- James Crasta
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MondoFailure
public MondoFailure(String message)
Copyright © 2013. All Rights Reserved.