Class DynamicErrorHandler

  • All Implemented Interfaces:
    java.util.function.Consumer<TelegramException>

    public class DynamicErrorHandler
    extends java.lang.Object
    implements java.util.function.Consumer<TelegramException>
    Allows for dynamic listening for Telegram Exceptions. If you register a handler under a given class, it will also listen for any of its subclasses. There can be an arbitrary amount of listeners for a given class. Do not modify the handlers field directly.