public enum ErrorType extends Enum<ErrorType>
| Enum Constant and Description |
|---|
API_KEY_ERROR
The api key is not correct.
|
PROTOCOL_UNSUPPORTED
The error happens because the network protocol is not supported.
|
REQUEST_CANCELLED
The error happens because the request is canceled.
|
RESPONSE_ERROR
The error happens in the response body.
|
UNKNOWN_ERROR
An unknown error.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorType RESPONSE_ERROR
public static final ErrorType REQUEST_CANCELLED
public static final ErrorType PROTOCOL_UNSUPPORTED
public static final ErrorType API_KEY_ERROR
public static final ErrorType UNKNOWN_ERROR
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static 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 nullpublic String getValue()
Copyright © 2023. All rights reserved.