com.quartercode.quarterbukkit.api.exception
Class InternalException

java.lang.Object
  extended by org.bukkit.event.Event
      extended by com.quartercode.quarterbukkit.api.exception.GameException
          extended by com.quartercode.quarterbukkit.api.exception.InternalException

public class InternalException
extends GameException

The InternalException occurres if something goes wrong deep inside a plugin.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
 
Constructor Summary
InternalException(org.bukkit.plugin.Plugin plugin, java.lang.Throwable cause)
          Creates an InternalException filled with the cause as a Throwable for the error.
InternalException(org.bukkit.plugin.Plugin plugin, java.lang.Throwable cause, org.bukkit.command.CommandSender causer)
          Creates a InternalException filled with the cause as a Throwable for the error and the CommandSender who may caused the error.
InternalException(org.bukkit.plugin.Plugin plugin, java.lang.Throwable cause, org.bukkit.command.CommandSender causer, java.lang.String message)
          Creates a InternalException filled with the cause as a Throwable for the error and the CommandSender who may caused the error an an informational message.
InternalException(org.bukkit.plugin.Plugin plugin, java.lang.Throwable cause, java.lang.String message)
          Creates a InternalException filled with the cause as an Throwable for the error and an informational message.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause for the error.
 org.bukkit.command.CommandSender getCauser()
          Returns the CommandSender causer.
 
Methods inherited from class com.quartercode.quarterbukkit.api.exception.GameException
getHandlerList, getHandlers, getMessage, getPlugin
 
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
 

Constructor Detail

InternalException

public InternalException(org.bukkit.plugin.Plugin plugin,
                         java.lang.Throwable cause)
Creates an InternalException filled with the cause as a Throwable for the error.

Parameters:
plugin - The causing Plugin.
cause - The cause for the error.

InternalException

public InternalException(org.bukkit.plugin.Plugin plugin,
                         java.lang.Throwable cause,
                         org.bukkit.command.CommandSender causer)
Creates a InternalException filled with the cause as a Throwable for the error and the CommandSender who may caused the error.

Parameters:
plugin - The causing Plugin.
cause - The cause for the error.
causer - The CommandSender who caused the error.

InternalException

public InternalException(org.bukkit.plugin.Plugin plugin,
                         java.lang.Throwable cause,
                         java.lang.String message)
Creates a InternalException filled with the cause as an Throwable for the error and an informational message.

Parameters:
plugin - The causing Plugin.
cause - The cause for the error.
message - The informational message.

InternalException

public InternalException(org.bukkit.plugin.Plugin plugin,
                         java.lang.Throwable cause,
                         org.bukkit.command.CommandSender causer,
                         java.lang.String message)
Creates a InternalException filled with the cause as a Throwable for the error and the CommandSender who may caused the error an an informational message.

Parameters:
plugin - The causing Plugin.
cause - The cause for the error.
causer - The CommandSender who caused the error.
message - The informational message.
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the cause for the error.

Returns:
The cause for the error as an Throwable.

getCauser

public org.bukkit.command.CommandSender getCauser()
Returns the CommandSender causer.

Returns:
The causer who hasn't enough permissions.