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.

@Experimental @FunctionalInterface public interface BotExceptionHandler<E extends Throwable,C>
Base Interface with any Exception Handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(E exception, C context)
     
  • Method Details

    • handle

      void handle(E exception, C context)
      Parameters:
      exception - An exception
      context - Environment that can cause exception (ex: Discord event)