Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard
Link copied to clipboard

Functions

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

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