Package net.dv8tion.jda.api.exceptions
Class ErrorResponseException.SchemaError
java.lang.Object
net.dv8tion.jda.api.exceptions.ErrorResponseException.SchemaError
- Enclosing class:
ErrorResponseException
Schema error which supplies more context to a ErrorResponse.
This provides a list of
This provides a list of
ErrorCodes
and a location
for the errors.-
Method Summary
Modifier and TypeMethodDescriptionThe list ofErrorCodes
associated with this schema error.The JSON-path for the error.toString()
-
Method Details
-
getLocation
The JSON-path for the error.
This path describes the location of the error, within the request json body.Example:
embed.fields[3].name
- Returns:
- The JSON-path location
-
getErrors
The list ofErrorCodes
associated with this schema error.- Returns:
- The error codes
-
toString
-