Package net.dv8tion.jda.api.exceptions
package net.dv8tion.jda.api.exceptions
All custom exceptions of the JDA library
-
ClassDescriptionUsed to pass a context to async exception handling for debugging purposes.Wrapper for a failure
Consumer
that carries aContextException
as cause.Utility class to simplify error handling withRestActions
andErrorResponses
.Indicates an unhandled error that is returned by Discord API Request usingRestAction
It holds anErrorResponse
An error for aErrorResponseException.SchemaError
.Schema error which supplies more context to a ErrorResponse.Exception indicating that a specific action requires to have a higher role than the target.Indicates an unsuccessful HTTP request.Indicates that the user is missing aPermission
for some action.Indicates that an interaction has expired and can no longer be responded to.Exception caused by the failure ofReplyAction
.Indicates that an invalid token was given when trying to login the Discord APIIndicates that the user is missing theVIEW_CHANNEL
, in addition toVOICE_CONNECT
permission ifChannel.getType()
is anaudio
type.Indicates a failure in parsing or deserializing data.Indicates that the currently logged in account does not meet the specifiedPermission
fromPermissionException.getPermission()
Indicates that we received a429: Too Many Requests
response