CommandException

class CommandException<T : Exception>(exception: T, val event: CommandEvent<*>) : DktException<T>

Contains an exception thrown from a command event.

Parameters

event

The CommandEvent that threw this exception.

Constructors

Link copied to clipboard
fun <T : Exception> CommandException(exception: T, event: CommandEvent<*>)

Properties

Link copied to clipboard
val event: CommandEvent<*>
Link copied to clipboard
val exception: T