ExceptionHandler

interface ExceptionHandler

Functions

onException
Link copied to clipboard
abstract fun onException(ex: Exception, command: BaseSlashCommand, event: CommandAutoCompleteInteractionEvent)
abstract fun onException(ex: Exception, command: BaseSlashCommand, event: SlashCommandInteractionEvent)
onInteractionTargetMismatch
Link copied to clipboard
abstract fun onInteractionTargetMismatch(ex: InteractionTargetMismatch)
onPermissionLackException
Link copied to clipboard
abstract fun onPermissionLackException(ex: PermissionsLackException)
onTimeoutCancellationException
Link copied to clipboard
abstract fun onTimeoutCancellationException(ex: TimeoutCancellationException, event: SlashCommandInteractionEvent, timeout: Duration)
wrap
Link copied to clipboard
open fun wrap(e: Exception, command: BaseSlashCommand, event: CommandAutoCompleteInteractionEvent)
open fun wrap(e: Exception, command: BaseSlashCommand, event: SlashCommandInteractionEvent)

Inheritors

ExceptionHandlerImpl
Link copied to clipboard