BotException

sealed class BotException : IOException, CopyableThrowable<BotException> (source)

Inheritors

Properties

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

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
abstract 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.