Package stawa.vitalstrike
Class Errors.CommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
stawa.vitalstrike.Errors.VitalStrikeException
stawa.vitalstrike.Errors.CommandException
- All Implemented Interfaces:
Serializable
- Enclosing class:
Errors
Exception for invalid command usage
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommandException(String message, String command) Creates a new CommandException with the specified message and commandCommandException(String message, String command, Throwable cause) Creates a new CommandException with the specified message, command, and cause -
Method Summary
Methods inherited from class stawa.vitalstrike.Errors.VitalStrikeException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandException
Creates a new CommandException with the specified message and command- Parameters:
message- the error messagecommand- the command that caused this error
-
CommandException
Creates a new CommandException with the specified message, command, and cause- Parameters:
message- the error messagecommand- the command that caused this errorcause- the cause of the error
-
-
Method Details
-
getCommand
Gets the command that caused this error- Returns:
- the command string
-