Class ErrorResponseException.ErrorCode

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

public static class ErrorResponseException.ErrorCode extends Object
An error for a ErrorResponseException.SchemaError.
This provides the machine parsable error code name and the human readable message.
  • Method Details

    • getCode

      @Nonnull public String getCode()
      The machine parsable error code
      Returns:
      The error code
    • getMessage

      @Nonnull public String getMessage()
      The human readable explanation message for this error
      Returns:
      The message
    • toString

      public String toString()
      Overrides:
      toString in class Object