Class ResponseException

All Implemented Interfaces:
Serializable

public class ResponseException extends RuntimeException
An exception that gets thrown when the REST requester encounters an error message that Discord sends back.
Since:
02/09/2019
Author:
SamOphis
See Also:
  • Constructor Details

    • ResponseException

      public ResponseException(String route, int statusCode, JsonErrorCode jsonCode, String jsonMessage, com.grack.nanojson.JsonObject rawJson)
  • Method Details

    • jsonErrorCodeMessage

      public String jsonErrorCodeMessage()
    • jsonErrorCodeInt

      public int jsonErrorCodeInt()
    • route

      public String route()
    • statusCode

      public int statusCode()
    • jsonCode

      public JsonErrorCode jsonCode()
    • jsonMessage

      public String jsonMessage()
    • rawJson

      public com.grack.nanojson.JsonObject rawJson()