BotCommands
Toggle table of contents
3.0.0-beta.7
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
BotCommands
BotCommands-core
/
io.github.freya022.botcommands.api.core
/
GlobalExceptionHandlerAdapter
Global
Exception
Handler
Adapter
@
NullMarked
abstract
class
GlobalExceptionHandlerAdapter
:
GlobalExceptionHandler
(
source
)
Adapter class for
GlobalExceptionHandler
.
See also
Global
Exception
Handler
Members
Constructors
Global
Exception
Handler
Adapter
Link copied to clipboard
constructor
(
)
Functions
handle
Link copied to clipboard
open
fun
handle
(
@
Nullable
event
:
@
Nullable
Event
,
throwable
:
Throwable
)
open
fun
handle
(
event
:
ModalInteractionEvent
,
throwable
:
Throwable
)
open
fun
handle
(
event
:
MessageContextInteractionEvent
,
throwable
:
Throwable
)
open
fun
handle
(
event
:
SlashCommandInteractionEvent
,
throwable
:
Throwable
)
open
fun
handle
(
event
:
UserContextInteractionEvent
,
throwable
:
Throwable
)
open
fun
handle
(
event
:
ButtonInteractionEvent
,
throwable
:
Throwable
)
open
fun
handle
(
event
:
EntitySelectInteractionEvent
,
throwable
:
Throwable
)
open
fun
handle
(
event
:
StringSelectInteractionEvent
,
throwable
:
Throwable
)
open
fun
handle
(
event
:
MessageReceivedEvent
,
throwable
:
Throwable
)
on
Exception
Link copied to clipboard
fun
onException
(
@
Nullable
event
:
@
Nullable
Event
,
throwable
:
Throwable
)
Note: You are sent a generic Event, you will need to check it against SlashCommandInteractionEvent, GuildMessageReceivedEvent, etc...