public class ErrorResponseException
extends java.lang.RuntimeException
RestAction
ErrorResponse| Modifier and Type | Method and Description |
|---|---|
static ErrorResponseException |
create(ErrorResponse errorResponse,
net.dv8tion.jda.core.requests.Response response) |
int |
getErrorCode()
The discord error code for this error response.
|
ErrorResponse |
getErrorResponse()
The
ErrorResponse corresponding
for the received error response from Discord |
java.lang.String |
getMeaning()
The meaning for this error.
|
net.dv8tion.jda.core.requests.Response |
getResponse()
The Discord Response causing the ErrorResponse
|
boolean |
isServerError()
Whether this is an internal server error from discord (status 500)
|
public boolean isServerError()
ErrorResponse.SERVER_ERRORpublic java.lang.String getMeaning()
server errorspublic int getErrorCode()
public ErrorResponse getErrorResponse()
ErrorResponse corresponding
for the received error response from DiscordErrorResponsepublic net.dv8tion.jda.core.requests.Response getResponse()
Responsepublic static ErrorResponseException create(ErrorResponse errorResponse, net.dv8tion.jda.core.requests.Response response)