com.quartercode.quarterbukkit.api.exception
Class GameException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.quartercode.quarterbukkit.api.exception.GameException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InstallException, NoCommandFoundException, NoPermissionException

public class GameException
extends java.lang.Exception

QuarterBukkitExceptions represents not so bad exceptions, they are primary e.g. for printing information messages. They are exceptions like the NoPermissionException.

See Also:
Serialized Form

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

Constructor Detail

GameException

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

Parameters:
plugin - The causing Plugin.

GameException

public GameException(org.bukkit.plugin.Plugin plugin,
                     java.lang.String message)
Creates a new QuarterBukkitException 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;