com.quartercode.quarterbukkit.api.exception
Class GameException

java.lang.Object
  extended by com.quartercode.quarterbukkit.api.exception.GameException
Direct Known Subclasses:
InstallException, NoCommandFoundException, NoPermissionException, ParseException

public class GameException
extends java.lang.Object

This is the bukkit base class for the exception-system.


Constructor Summary
GameException(org.bukkit.plugin.Plugin plugin)
          Creates a new empty GameException with a Plugin.
GameException(org.bukkit.plugin.Plugin plugin, java.lang.String message)
          Creates a new GameException with a Plugin and an informational message.
 
Method Summary
 java.lang.String getMessage()
          Returns the informational message.
 org.bukkit.plugin.Plugin getPlugin()
          Returns the causing Plugin;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameException

public GameException(org.bukkit.plugin.Plugin plugin)
Creates a new empty GameException with a Plugin.

Parameters:
plugin - The causing Plugin.

GameException

public GameException(org.bukkit.plugin.Plugin plugin,
                     java.lang.String message)
Creates a new GameException with a Plugin and an informational message.

Parameters:
plugin - The causing Plugin.
message - The information as a human-readable message.
Method Detail

getPlugin

public org.bukkit.plugin.Plugin getPlugin()
Returns the causing Plugin;

Returns:
The causing Plugin;

getMessage

public java.lang.String getMessage()
Returns the informational message.

Returns:
The informational message.