RestRequestException

abstract class RestRequestException(val request: Request<*, *>, val status: HttpStatus, val error: DiscordErrorResponse? = null) : RequestException(source)

Signals that an error related to interactions with the REST API occurred.

  • status — The HTTP Status code of the failed request.

  • error — The JSON error body of the failed request, this is optionally present.

Inheritors

Constructors

Link copied to clipboard
constructor(request: Request<*, *>, status: HttpStatus, error: DiscordErrorResponse? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard
val request: Request<*, *>
Link copied to clipboard