Package com.dianxin.tori.base.lifecycle
Interface BotExceptionHandler<E extends Throwable,C>
- Type Parameters:
E- Exception type that this handler could handing.C- Context (ví dụ: SlashCommandInteractionEvent) to reply to Discord.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Base Interface with any Exception Handler.
-
Method Summary
-
Method Details
-
handle
- Parameters:
exception- An exceptioncontext- Environment that can cause exception (ex: Discord event)
-