Package net.dv8tion.jda.api.exceptions
All custom exceptions of the JDA library
-
Class Summary Class Description ContextException.ContextConsumer ErrorHandler Utility class to simplify error handling withRestActions
andErrorResponses
.ErrorResponseException.ErrorCode An error for aErrorResponseException.SchemaError
.ErrorResponseException.SchemaError Schema error which supplies more context to a ErrorResponse. -
Exception Summary Exception Description AccountTypeException Indicates that an operation is not possible unless theAccountType
matches the one provided inAccountTypeException.getRequiredType()
ContextException Used to pass a context to async exception handling for debugging purposes.ErrorResponseException Indicates an unhandled error that is returned by Discord API Request usingRestAction
It holds anErrorResponse
GuildUnavailableException Deprecated. This will be removed in favor of a better system which does not keep unavailable guilds in cache in the first place.HierarchyException HttpException InsufficientPermissionException Indicates that the user is missing aPermission
for some action.InteractionFailureException Exception caused by the failure ofReplyAction
.MissingAccessException Indicates that the user is missing theVIEW_CHANNEL
orVOICE_CONNECT
permission.ParsingException PermissionException Indicates that the currently logged in account does not meet the specifiedPermission
fromPermissionException.getPermission()
RateLimitedException Indicates that we received a429: Too Many Requests
responseVerificationLevelException Deprecated.