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 Details

  • Method Details

    • values

      public static FlagArgument.FailureReason[] 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

      public static FlagArgument.FailureReason valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCaption

      public @NonNull Caption getCaption()
      Get the caption used for this failure reason
      Returns:
      The caption