public enum CommonError extends Enum<CommonError> implements IError
Enum Constant and Description |
---|
API_KEYS_NOT_NUL |
OPENAI_AUTHENTICATION_ERROR |
OPENAI_LIMIT_ERROR |
OPENAI_SERVER_ERROR |
PARAM_ERROR |
RETRY_ERROR |
SYS_ERROR |
Modifier and Type | Method and Description |
---|---|
int |
code() |
String |
msg() |
static CommonError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommonError API_KEYS_NOT_NUL
public static final CommonError SYS_ERROR
public static final CommonError PARAM_ERROR
public static final CommonError RETRY_ERROR
public static final CommonError OPENAI_AUTHENTICATION_ERROR
public static final CommonError OPENAI_LIMIT_ERROR
public static final CommonError OPENAI_SERVER_ERROR
public static CommonError[] values()
for (CommonError c : CommonError.values()) System.out.println(c);
public static CommonError 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 nullCopyright © 2023 grt1228. All rights reserved.