Interface WebhookErrorHandler

    • Field Detail

      • DEFAULT

        static final WebhookErrorHandler DEFAULT
        The default error handling which simply logs the exception using SLF4J
    • Method Detail

      • handle

        void handle​(@NotNull
                    @NotNull WebhookClient client,
                    @NotNull
                    @NotNull String message,
                    @Nullable
                    @Nullable Throwable throwable)
        Implements error handling, must not throw anything!
        Parameters:
        client - The WebhookClient instance which encountered the exception
        message - The context message used for logging
        throwable - The encountered exception, or null if the error is only a context message