com.quartercode.quarterbukkit.api.exception
Class InstallException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.quartercode.quarterbukkit.api.exception.GameException
              extended by com.quartercode.quarterbukkit.api.exception.InstallException
All Implemented Interfaces:
java.io.Serializable

public class InstallException
extends GameException

The InstallException occurres if something goes wrong while installing a plugin via Updater.

See Also:
Serialized Form

Constructor Summary
InstallException(org.bukkit.plugin.Plugin plugin, java.lang.Exception cause)
          Creates a InstallException filled with a cause as an Exception for the error.
InstallException(org.bukkit.plugin.Plugin plugin, java.lang.Exception cause, org.bukkit.command.CommandSender causer)
          Creates a InstallException filled with a cause as an Exception for the error.
InstallException(org.bukkit.plugin.Plugin plugin, java.lang.Exception cause, org.bukkit.command.CommandSender causer, java.lang.String message)
          Creates a InstallException filled with a cause as an Exception for the error and an informational message.
InstallException(org.bukkit.plugin.Plugin plugin, java.lang.Exception cause, java.lang.String message)
          Creates a InstallException filled with a cause as an Exception for the error and an informational message.
 
Method Summary
 java.lang.Exception 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
getPlugin
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

InstallException

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

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

InstallException

public InstallException(org.bukkit.plugin.Plugin plugin,
                        java.lang.Exception cause,
                        org.bukkit.command.CommandSender causer)
Creates a InstallException filled with a cause as an Exception for the error.

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

InstallException

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

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

InstallException

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

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

getCause

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

Overrides:
getCause in class java.lang.Throwable
Returns:
The cause for the error as an Exception.

getCauser

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

Returns:
The causer who hasn't enough permissions.