com.quartercode.quarterbukkit.api.exception
Class GameException
java.lang.Object
org.bukkit.event.Event
com.quartercode.quarterbukkit.api.exception.GameException
- Direct Known Subclasses:
- InstallException, NoCommandFoundException, NoPermissionException, ParseException
public class GameException
- extends org.bukkit.event.Event
This is the base class for the exception-event-system.
| Nested classes/interfaces inherited from class org.bukkit.event.Event |
org.bukkit.event.Event.Result |
|
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 |
static org.bukkit.event.HandlerList |
getHandlerList()
|
org.bukkit.event.HandlerList |
getHandlers()
|
java.lang.String |
getMessage()
Returns the informational message. |
org.bukkit.plugin.Plugin |
getPlugin()
Returns the causing Plugin; |
| Methods inherited from class org.bukkit.event.Event |
getEventName, isAsynchronous |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
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.
getHandlers
public org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlers in class org.bukkit.event.Event