Enum MinecraftExceptionHandler.ExceptionType
java.lang.Object
java.lang.Enum<MinecraftExceptionHandler.ExceptionType>
cloud.commandframework.minecraft.extras.MinecraftExceptionHandler.ExceptionType
- All Implemented Interfaces:
Serializable
,Comparable<MinecraftExceptionHandler.ExceptionType>
- Enclosing class:
- MinecraftExceptionHandler<C>
public static enum MinecraftExceptionHandler.ExceptionType
extends Enum<MinecraftExceptionHandler.ExceptionType>
Exception types
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn argument failed to parse (ArgumentParseException
)A command handler had an exception (CommandExecutionException
)The sender is not of the right type (InvalidCommandSenderException
)The input does not correspond to any known command (InvalidSyntaxException
)The sender does not have permission to execute the command (NoPermissionException
) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INVALID_SYNTAX
The input does not correspond to any known command (InvalidSyntaxException
) -
INVALID_SENDER
The sender is not of the right type (InvalidCommandSenderException
) -
NO_PERMISSION
The sender does not have permission to execute the command (NoPermissionException
) -
ARGUMENT_PARSING
An argument failed to parse (ArgumentParseException
) -
COMMAND_EXECUTION
A command handler had an exception (CommandExecutionException
)- Since:
- 1.2.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-