java.io.Serializable
, java.lang.Comparable<ClientError>
public enum ClientError extends java.lang.Enum<ClientError>
Enum Constant | Description |
---|---|
CONNECTION_CLOSED |
The websocket connection has prematurely closed, this could mean starcraft crashed or a websocket timeout has
occurred.
|
ERROR_SC2 |
|
INVALID_ABILITY_REMAP |
An ability was improperly mapped to an ability id that doesn't exist.
|
INVALID_RESPONSE |
The response does not contain a field that was expected.
|
NO_ABILITIES_FOR_TAG |
The unit does not have any abilities.
|
RESPONSE_MISMATCH |
The response received from SC2 does not match the request.
|
RESPONSE_NOT_CONSUMED |
A request was made without consuming the response from the previous request of given type.
|
SC2_APP_FAILURE |
SC2 has either crashed or been forcibly terminated by this library because it was not responding to requests.
|
SC2_PROTOCOL_ERROR |
The response from SC2 contains errors, most likely meaning the API was not used in a correct way.
|
SC2_PROTOCOL_TIMEOUT |
A request was made and a response was not received in the amount of time given by the timeout.
|
SC2_UNKNOWN_STATUS |
|
WRONG_GAME_VERSION |
A replay was attempted to be loaded in the wrong game version.
|
Modifier and Type | Method | Description |
---|---|---|
static ClientError |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ClientError[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientError ERROR_SC2
public static final ClientError INVALID_ABILITY_REMAP
public static final ClientError INVALID_RESPONSE
public static final ClientError NO_ABILITIES_FOR_TAG
public static final ClientError RESPONSE_NOT_CONSUMED
public static final ClientError RESPONSE_MISMATCH
public static final ClientError CONNECTION_CLOSED
public static final ClientError SC2_UNKNOWN_STATUS
public static final ClientError SC2_APP_FAILURE
public static final ClientError SC2_PROTOCOL_ERROR
public static final ClientError SC2_PROTOCOL_TIMEOUT
public static final ClientError WRONG_GAME_VERSION
public static ClientError[] values()
for (ClientError c : ClientError.values()) System.out.println(c);
public static ClientError valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2017–2018 Ocraft Project. All rights reserved.