TooMuchRequestsException

class TooMuchRequestsException(val retryAfter: RetryAfterError, response: Response, plainAnswer: String, message: String?, cause: Throwable?) : RequestException(source)

Constructors

Link copied to clipboard
constructor(retryAfter: RetryAfterError, response: Response, plainAnswer: String, message: String?, cause: Throwable?)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
open override val message: String
Link copied to clipboard
open override val plainAnswer: String
Link copied to clipboard
open override val response: Response
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : Throwable> Throwable.causedBy(kclass: KClass<T>, additionalFilterOnHappened: (T) -> T? = { it }): T?
Link copied to clipboard
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

Link copied to clipboard
fun Throwable.causedUnresolvedAddressException(): UnresolvedAddressException?
Link copied to clipboard
open override fun createCopy(): BotException
Link copied to clipboard
inline fun <T> BotException.ifApiException(block: (ApiException) -> T): T?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> BotException.ifRequestException(block: (RequestException) -> T): T?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Checks whether this throwable (or any of its causes) is a CancellationException.