mondocommand
Class MondoFailure

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
MondoFailure(String message)
           
 
Method Summary
 
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

MondoFailure

public MondoFailure(String message)


Copyright © 2013. All Rights Reserved.