public enum ErrorType extends Enum<ErrorType>
| 枚举常量和说明 |
|---|
API_KEY_ERROR
The api key is not correct.
|
NETORK_ERROR |
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.
|
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 final ErrorType NETORK_ERROR
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getValue()
Copyright © 2024. All rights reserved.