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.ObjectSchema error which supplies more context to a ErrorResponse.
This provides a list ofErrorCodesand alocationfor the errors.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ErrorResponseException.ErrorCode>getErrors()The list ofErrorCodesassociated with this schema error.java.lang.StringgetLocation()The JSON-path for the error.java.lang.StringtoString()
-
-
-
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 ofErrorCodesassociated with this schema error.- Returns:
- The error codes
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-