com.quartercode.quarterbukkit.api.exception
Class ExceptionHandler
java.lang.Object
com.quartercode.quarterbukkit.api.exception.ExceptionHandler
- Direct Known Subclasses:
- QuarterBukkitExceptionHandler
public abstract class ExceptionHandler
- extends java.lang.Object
Class for handling GameException
caused by a Plugin
.
Those represents not so bad exceptions, they are primary e.g. for printing information messages.
Field Summary |
protected org.bukkit.plugin.Plugin |
plugin
|
Constructor Summary |
ExceptionHandler(org.bukkit.plugin.Plugin plugin)
Creates a new ExceptionHandler binded to a Plugin . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
plugin
protected final org.bukkit.plugin.Plugin plugin
ExceptionHandler
public ExceptionHandler(org.bukkit.plugin.Plugin plugin)
- Creates a new ExceptionHandler binded to a
Plugin
.
- Parameters:
plugin
- The binding plugin.
getPlugin
public org.bukkit.plugin.Plugin getPlugin()
- Returns the
Plugin
the ExceptionHandler is binded to.
- Returns:
- The binding plugin.
handle
public abstract void handle(GameException exception)
- Handle an
GameException
caused by a Plugin
.
- Parameters:
exception
- The GameException
to handle.