com.quartercode.quarterbukkit.api.exception
Class NoCommandFoundException

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.NoCommandFoundException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NoDefaultCommandFoundException

public class NoCommandFoundException
extends GameException

The NoCommandFoundException represents an exception caused by a not registered command.

See Also:
Serialized Form

Constructor Summary
NoCommandFoundException(org.bukkit.plugin.Plugin plugin, Command command, CommandExecutor commandExecutor)
          Creates a NoCommandFoundException filled with a Command and a CommandExecutor.
NoCommandFoundException(org.bukkit.plugin.Plugin plugin, Command command, CommandExecutor commandExecutor, java.lang.String message)
          Creates a NoCommandFoundException filled with a Command, a CommandExecutor and an informational message.
 
Method Summary
 Command getCommand()
          Returns the not registered Command.
 CommandExecutor getCommandExecutor()
          Returns the CommandExecutor which should execute the Command.
 
Methods inherited from class com.quartercode.quarterbukkit.api.exception.GameException
getPlugin
 
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

NoCommandFoundException

public NoCommandFoundException(org.bukkit.plugin.Plugin plugin,
                               Command command,
                               CommandExecutor commandExecutor)
Creates a NoCommandFoundException filled with a Command and a CommandExecutor.

Parameters:
plugin - The causing Plugin.
command - The not registered Command.
commandExecutor - The CommandExecutor which should execute the Command.

NoCommandFoundException

public NoCommandFoundException(org.bukkit.plugin.Plugin plugin,
                               Command command,
                               CommandExecutor commandExecutor,
                               java.lang.String message)
Creates a NoCommandFoundException filled with a Command, a CommandExecutor and an informational message.

Parameters:
plugin - The causing Plugin.
command - The not registered Command.
commandExecutor - The CommandExecutor which should execute the Command.
message - The information message.
Method Detail

getCommand

public Command getCommand()
Returns the not registered Command.

Returns:
The not existing Command.

getCommandExecutor

public CommandExecutor getCommandExecutor()
Returns the CommandExecutor which should execute the Command.

Returns:
The CommandExecutor.