public class ErrorResponseException
extends java.lang.RuntimeException
RestAction
ErrorResponse
Constructor and Description |
---|
ErrorResponseException(ErrorResponse errorResponse,
net.dv8tion.jda.core.requests.Response response)
Creates a new ErrorResponseException instance
|
Modifier and Type | Method and Description |
---|---|
ErrorResponse |
getErrorResponse()
The
ErrorResponse corresponding
for the received error response from Discord |
net.dv8tion.jda.core.requests.Response |
getResponse()
The Discord Response causing the ErrorResponse
|
public ErrorResponseException(ErrorResponse errorResponse, net.dv8tion.jda.core.requests.Response response)
errorResponse
- The ErrorResponse
corresponding
for the received error response from Discordresponse
- The Discord Response causing the ErrorResponsepublic ErrorResponse getErrorResponse()
ErrorResponse
corresponding
for the received error response from DiscordErrorResponse
public net.dv8tion.jda.core.requests.Response getResponse()
Response