public static enum StandardResponse.ErrorType extends Enum<StandardResponse.ErrorType>
| Enum Constant and Description |
|---|
ERROR
Generic error, for any other error case
|
INVALID_PLAYER_STATE
Returned when the player state is invalid to fulfill the request
|
INVALID_REQUEST
Returned when the request is not valid
|
LOAD_CANCELLED
Returned when the LOAD request is cancelled by a second incoming LOAD
request
|
LOAD_FAILED
Returned when the LOAD request failed
|
| Modifier and Type | Method and Description |
|---|---|
static StandardResponse.ErrorType |
typeOf(String errorType)
Parses the specified string and returns the corresponding
StandardResponse.ErrorType, or null if no match could be found. |
static StandardResponse.ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardResponse.ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardResponse.ErrorType INVALID_PLAYER_STATE
public static final StandardResponse.ErrorType LOAD_FAILED
public static final StandardResponse.ErrorType LOAD_CANCELLED
public static final StandardResponse.ErrorType INVALID_REQUEST
public static final StandardResponse.ErrorType ERROR
public static StandardResponse.ErrorType[] values()
for (StandardResponse.ErrorType c : StandardResponse.ErrorType.values()) System.out.println(c);
public static StandardResponse.ErrorType 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@Nullable public static StandardResponse.ErrorType typeOf(String errorType)
StandardResponse.ErrorType, or null if no match could be found.errorType - the string to parse.StandardResponse.ErrorType or null.Copyright © 2022. All rights reserved.