Annotation Interface BotExceptionHandler


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface BotExceptionHandler
Designates a method as a bot exception handler within a BotController. The annotated method is invoked when an exception of one of the specified types is thrown during the processing of a Telegram update.
Since:
0.0.1
Author:
Islom Mirsaburov
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Throwable>[]
    The exception types handled by the annotated method.
  • Element Details

    • value

      Class<? extends Throwable>[] value
      The exception types handled by the annotated method.
      Returns:
      an array of Throwable subclasses that trigger this handler