com.quartercode.quarterbukkit.api.exception
Class ExceptionHandler

java.lang.Object
  extended by 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.
 
Method Summary
 org.bukkit.plugin.Plugin getPlugin()
          Returns the Plugin the ExceptionHandler is binded to.
abstract  void handle(GameException exception)
          Handle an GameException caused by a Plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plugin

protected final org.bukkit.plugin.Plugin plugin
Constructor Detail

ExceptionHandler

public ExceptionHandler(org.bukkit.plugin.Plugin plugin)
Creates a new ExceptionHandler binded to a Plugin.

Parameters:
plugin - The binding plugin.
Method Detail

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.