public enum ErrorResponse extends java.lang.Enum<ErrorResponse>
Modifier and Type | Method | Description |
---|---|---|
static ErrorResponse |
fromCode(int code) |
|
static ErrorResponse |
fromJSON(org.json.JSONObject obj) |
|
int |
getCode() |
|
java.lang.String |
getMeaning() |
|
static ErrorResponse |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ErrorResponse[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorResponse UNKNOWN_ACCOUNT
public static final ErrorResponse UNKNOWN_APPLICATION
public static final ErrorResponse UNKNOWN_CHANNEL
public static final ErrorResponse UNKNOWN_GUILD
public static final ErrorResponse UNKNOWN_INTEGRATION
public static final ErrorResponse UNKNOWN_INVITE
public static final ErrorResponse UNKNOWN_MEMBER
public static final ErrorResponse UNKNOWN_MESSAGE
public static final ErrorResponse UNKNOWN_OVERRIDE
public static final ErrorResponse UNKNOWN_PROVIDER
public static final ErrorResponse UNKNOWN_ROLE
public static final ErrorResponse UNKNOWN_TOKEN
public static final ErrorResponse UNKNOWN_USER
public static final ErrorResponse UNKNOWN_EMOJI
public static final ErrorResponse UNKNOWN_WEBHOOK
public static final ErrorResponse UNKNOWN_BAN
public static final ErrorResponse BOTS_NOT_ALLOWED
public static final ErrorResponse ONLY_BOTS_ALLOWED
public static final ErrorResponse MAX_GUILDS
public static final ErrorResponse MAX_FRIENDS
public static final ErrorResponse MAX_MESSAGE_PINS
public static final ErrorResponse MAX_USERS_PER_DM
public static final ErrorResponse MAX_ROLES_PER_GUILD
public static final ErrorResponse TOO_MANY_REACTIONS
public static final ErrorResponse UNAUTHORIZED
public static final ErrorResponse MISSING_ACCESS
public static final ErrorResponse INVALID_ACCOUNT_TYPE
public static final ErrorResponse INVALID_DM_ACTION
public static final ErrorResponse EMBED_DISABLED
public static final ErrorResponse INVALID_AUTHOR_EDIT
public static final ErrorResponse EMPTY_MESSAGE
public static final ErrorResponse CANNOT_SEND_TO_USER
public static final ErrorResponse CANNOT_MESSAGE_VC
public static final ErrorResponse VERIFICATION_ERROR
public static final ErrorResponse OAUTH_NOT_BOT
public static final ErrorResponse MAX_OAUTH_APPS
public static final ErrorResponse INVALID_OAUTH_STATE
public static final ErrorResponse MISSING_PERMISSIONS
public static final ErrorResponse INVALID_TOKEN
public static final ErrorResponse NOTE_TOO_LONG
public static final ErrorResponse INVALID_BULK_DELETE
public static final ErrorResponse INVALID_MFA_LEVEL
public static final ErrorResponse INVALID_PASSWORD
public static final ErrorResponse INVALID_PIN
public static final ErrorResponse INVALID_MESSAGE_TARGET
public static final ErrorResponse INVALID_BULK_DELETE_MESSAGE_AGE
public static final ErrorResponse MFA_NOT_ENABLED
public static final ErrorResponse REACTION_BLOCKED
public static final ErrorResponse SERVER_ERROR
public static ErrorResponse[] values()
for (ErrorResponse c : ErrorResponse.values()) System.out.println(c);
public static ErrorResponse 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 nullpublic int getCode()
public java.lang.String getMeaning()
public static ErrorResponse fromCode(int code)
public static ErrorResponse fromJSON(org.json.JSONObject obj)