com.quartercode.quarterbukkit.api.exception
Class ExceptionManager

java.lang.Object
  extended by com.quartercode.quarterbukkit.api.exception.ExceptionManager

public class ExceptionManager
extends java.lang.Object


Method Summary
static void exception(GameException exception)
          Handles an GameException in the correct ExceptionHandler.
static ExceptionHandler getExceptionHandler(org.bukkit.plugin.Plugin plugin)
          Returns the registered ExceptionHandler for a Plugin.
static java.util.List<ExceptionHandler> getExceptionHandlers()
          Returns all registered ExceptionHandlers.
static void removeExceptionHandler(org.bukkit.plugin.Plugin plugin)
          Unregisters the ExceptionHandler of a binding Plugin.
static void setExceptionHandler(ExceptionHandler exceptionHandler)
          Registers the ExceptionHandler for a binding Plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExceptionHandlers

public static java.util.List<ExceptionHandler> getExceptionHandlers()
Returns all registered ExceptionHandlers.

Returns:
The ExceptionHandlers.

getExceptionHandler

public static ExceptionHandler getExceptionHandler(org.bukkit.plugin.Plugin plugin)
Returns the registered ExceptionHandler for a Plugin.

Parameters:
plugin - The binding Plugin.
Returns:
The ExceptionHandler.

setExceptionHandler

public static void setExceptionHandler(ExceptionHandler exceptionHandler)
Registers the ExceptionHandler for a binding Plugin.

Parameters:
exceptionHandler - The ExceptionHandler to register.

removeExceptionHandler

public static void removeExceptionHandler(org.bukkit.plugin.Plugin plugin)
Unregisters the ExceptionHandler of a binding Plugin.

Parameters:
plugin - The Plugin to unregister.

exception

public static void exception(GameException exception)
Handles an GameException in the correct ExceptionHandler.

Parameters:
exception - The GameException to handle.