public enum ErrorType extends Enum<ErrorType>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
code() |
static Optional<ErrorType> |
fromCode(int code) |
String |
message() |
<T> T |
throwThis(java.util.function.BiFunction<ErrorType,String,? extends RuntimeException> errorTypeFunction,
String message) |
<T> T |
throwThis(java.util.function.Function<ErrorType,? extends RuntimeException> errorTypeFunction) |
static ErrorType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ErrorType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ErrorType ILLEGAL_CODE
public static final ErrorType ILLEGAL_ACCESS_TOKEN
public static final ErrorType ILLEGAL_CLIENT_ID
public static final ErrorType ILLEGAL_CLIENT_SECRET
public static final ErrorType ILLEGAL_GRANT_TYPE
public static final ErrorType ILLEGAL_RESPONSE_TYPE
public static final ErrorType ILLEGAL_AUTHORIZATION
public static final ErrorType ILLEGAL_REFRESH_TOKEN
public static final ErrorType ILLEGAL_REDIRECT_URI
public static final ErrorType ILLEGAL_SCOPE
public static final ErrorType ILLEGAL_USERNAME
public static final ErrorType ILLEGAL_PASSWORD
public static final ErrorType SCOPE_OUT_OF_RANGE
public static final ErrorType UNAUTHORIZED_CLIENT
public static final ErrorType EXPIRED_TOKEN
public static final ErrorType INVALID_TOKEN
public static final ErrorType UNSUPPORTED_GRANT_TYPE
public static final ErrorType UNSUPPORTED_RESPONSE_TYPE
public static final ErrorType EXPIRED_CODE
public static final ErrorType EXPIRED_REFRESH_TOKEN
public static final ErrorType CLIENT_DISABLED
public static final ErrorType CLIENT_NOT_EXIST
public static final ErrorType USER_NOT_EXIST
public static final ErrorType STATE_ERROR
public static final ErrorType ACCESS_DENIED
public static final ErrorType OTHER
public static final ErrorType PARSE_RESPONSE_ERROR
public static final ErrorType SERVICE_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 message()
public int code()
public <T> T throwThis(java.util.function.Function<ErrorType,? extends RuntimeException> errorTypeFunction)
public <T> T throwThis(java.util.function.BiFunction<ErrorType,String,? extends RuntimeException> errorTypeFunction, String message)
Copyright © 2016–2021. All rights reserved.