public class ErrorResponseException
extends java.lang.RuntimeException
RestAction
ErrorResponse
Modifier and Type | Method | Description |
---|---|---|
static ErrorResponseException |
create(ErrorResponse errorResponse,
net.dv8tion.jda.core.requests.Response response) |
|
java.lang.Throwable |
getCause() |
|
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_ERROR
public java.lang.String getMeaning()
server errors
public int getErrorCode()
public ErrorResponse getErrorResponse()
ErrorResponse
corresponding
for the received error response from DiscordErrorResponse
public net.dv8tion.jda.core.requests.Response getResponse()
Response
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public static ErrorResponseException create(ErrorResponse errorResponse, net.dv8tion.jda.core.requests.Response response)