com.quartercode.quarterbukkit.api.exception
Class InstallException

java.lang.Object
  extended by com.quartercode.quarterbukkit.api.exception.GameException
      extended by com.quartercode.quarterbukkit.api.exception.InstallException

public class InstallException
extends GameException

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


Constructor Summary
InstallException(org.bukkit.plugin.Plugin plugin, Updater updater, java.lang.Exception cause)
          Creates a InstallException filled with the causing Updater and a cause as an Exception for the error.
InstallException(org.bukkit.plugin.Plugin plugin, Updater updater, java.lang.Exception cause, org.bukkit.command.CommandSender causer)
          Creates a InstallException filled with the causing Updater, a cause as an Exception for the error and the CommandSender who executed the updater.
InstallException(org.bukkit.plugin.Plugin plugin, Updater updater, java.lang.Exception cause, org.bukkit.command.CommandSender causer, java.lang.String message)
          Creates a InstallException filled with the causing Updater, a cause as an Exception for the error, the CommandSender who executed the updater an an informational message.
InstallException(org.bukkit.plugin.Plugin plugin, Updater updater, java.lang.Exception cause, java.lang.String message)
          Creates a InstallException filled with the causing Updater, 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.
 Updater getUpdater()
          Returns the Updater which caused the error.
 
Methods inherited from class com.quartercode.quarterbukkit.api.exception.GameException
getMessage, getPlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallException

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

Parameters:
plugin - The causing Plugin.
updater - The Updater which caused the error.
cause - The cause for the error.

InstallException

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

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

InstallException

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

Parameters:
plugin - The causing Plugin.
updater - The Updater which caused the error.
cause - The cause for the error.
message - The informational message.

InstallException

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

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

getUpdater

public Updater getUpdater()
Returns the Updater which caused the error.

Returns:
The Updater which caused the error.

getCause

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

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.