Package com.mewna.catnip.rest
Class ResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mewna.catnip.rest.ResponseException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionResponseException
(String route, int statusCode, JsonErrorCode jsonCode, String jsonMessage, com.grack.nanojson.JsonObject rawJson) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResponseException
public ResponseException(String route, int statusCode, JsonErrorCode jsonCode, String jsonMessage, com.grack.nanojson.JsonObject rawJson)
-
-
Method Details
-
jsonErrorCodeMessage
-
jsonErrorCodeInt
public int jsonErrorCodeInt() -
route
-
statusCode
public int statusCode() -
jsonCode
-
jsonMessage
-
rawJson
public com.grack.nanojson.JsonObject rawJson()
-