Package net.dv8tion.jda.api.exceptions
Class ErrorResponseException.ErrorCode
- java.lang.Object
-
- net.dv8tion.jda.api.exceptions.ErrorResponseException.ErrorCode
-
- Enclosing class:
- ErrorResponseException
public static class ErrorResponseException.ErrorCode extends java.lang.Object
An error for aErrorResponseException.SchemaError
.
This provides the machine parsable error code name and the human readable message.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCode()
The machine parsable error codejava.lang.String
getMessage()
The human readable explanation message for this errorjava.lang.String
toString()
-
-
-
Method Detail
-
getCode
@Nonnull public java.lang.String getCode()
The machine parsable error code- Returns:
- The error code
-
getMessage
@Nonnull public java.lang.String getMessage()
The human readable explanation message for this error- Returns:
- The message
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-