Package net.dv8tion.jda.api.exceptions
Class ErrorResponseException.SchemaError
- java.lang.Object
-
- net.dv8tion.jda.api.exceptions.ErrorResponseException.SchemaError
-
- Enclosing class:
- ErrorResponseException
public static class ErrorResponseException.SchemaError extends java.lang.Object
Schema error which supplies more context to a ErrorResponse.
This provides a list ofErrorCodes
and alocation
for the errors.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ErrorResponseException.ErrorCode>
getErrors()
The list ofErrorCodes
associated with this schema error.java.lang.String
getLocation()
The JSON-path for the error.java.lang.String
toString()
-
-
-
Method Detail
-
getLocation
@Nonnull public java.lang.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
@Nonnull public java.util.List<ErrorResponseException.ErrorCode> getErrors()
The list ofErrorCodes
associated with this schema error.- Returns:
- The error codes
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-