Class ErrorResponseException.SchemaError

java.lang.Object
net.dv8tion.jda.api.exceptions.ErrorResponseException.SchemaError
Enclosing class:
ErrorResponseException

public static class ErrorResponseException.SchemaError extends Object
Schema error which supplies more context to a ErrorResponse.
This provides a list of ErrorCodes and a location for the errors.
  • Method Details

    • getLocation

      @Nonnull public String 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 of ErrorCodes associated with this schema error.
      Returns:
      The error codes
    • toString

      public String toString()
      Overrides:
      toString in class Object