public static enum KitRedeemException.Reason extends Enum<KitRedeemException.Reason>
Enum Constant and Description |
---|
ALREADY_REDEEMED
The one time kit has already been redeemed.
|
COOLDOWN_NOT_EXPIRED
The cooldown has not expired.
|
NO_SPACE
There is no space for the items in the kit.
|
PRE_EVENT_CANCELLED
The
NucleusKitEvent.Redeem.Pre was cancelled. |
UNKNOWN
An unknown error occurred.
|
Modifier and Type | Method and Description |
---|---|
static KitRedeemException.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KitRedeemException.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KitRedeemException.Reason ALREADY_REDEEMED
public static final KitRedeemException.Reason COOLDOWN_NOT_EXPIRED
This indicates that the exception can be cast to
KitRedeemException.Cooldown
to get the
amount of time left.
public static final KitRedeemException.Reason NO_SPACE
public static final KitRedeemException.Reason PRE_EVENT_CANCELLED
NucleusKitEvent.Redeem.Pre
was cancelled.
This indicates that the exception can be cast to
KitRedeemException.PreCancelled
to get the
amount of time left.
public static final KitRedeemException.Reason UNKNOWN
public static KitRedeemException.Reason[] values()
for (KitRedeemException.Reason c : KitRedeemException.Reason.values()) System.out.println(c);
public static KitRedeemException.Reason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null