Class InvalidWebhookError

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidWebhookError
    extends java.lang.RuntimeException
    Raised by every webhook ingestion primitive when the request cannot be safely turned into a typed event. A single exception type lets handler code use one catch arm and, when needed, branch on the failure-mode message constants exposed here.

    Unchecked so webhook handlers don't have to declare throws on every helper call — matches the JVM convention for input-validation failures (cf. IllegalArgumentException).

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidWebhookError​(@NotNull java.lang.String message)  
      InvalidWebhookError​(@NotNull java.lang.String message, @Nullable java.lang.Throwable cause)  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidWebhookError

        public InvalidWebhookError​(@NotNull
                                   @NotNull java.lang.String message)
      • InvalidWebhookError

        public InvalidWebhookError​(@NotNull
                                   @NotNull java.lang.String message,
                                   @Nullable
                                   @Nullable java.lang.Throwable cause)