Enum FlagArgument.FailureReason
java.lang.Object
java.lang.Enum<FlagArgument.FailureReason>
cloud.commandframework.arguments.compound.FlagArgument.FailureReason
- All Implemented Interfaces:
Serializable
,Comparable<FlagArgument.FailureReason>
- Enclosing class:
- FlagArgument<C>
@API(status=STABLE)
public static enum FlagArgument.FailureReason
extends Enum<FlagArgument.FailureReason>
Reasons for which flag parsing may fail
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescription@NonNull Caption
Get the caption used for this failure reasonstatic FlagArgument.FailureReason
Returns the enum constant of this type with the specified name.static FlagArgument.FailureReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN_FLAG
-
DUPLICATE_FLAG
-
NO_FLAG_STARTED
-
MISSING_ARGUMENT
-
NO_PERMISSION
-
-
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
-
getCaption
Get the caption used for this failure reason- Returns:
- The caption
-