Class InvalidWebhookError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.getstream.chat.java.exceptions.InvalidWebhookError
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidWebhookError extends java.lang.RuntimeExceptionRaised 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
throwson every helper call — matches the JVM convention for input-validation failures (cf.IllegalArgumentException).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGZIP_FAILEDstatic java.lang.StringINVALID_BASE64static java.lang.StringINVALID_JSONstatic java.lang.StringSIGNATURE_MISMATCH
-
Constructor Summary
Constructors Constructor Description InvalidWebhookError(@NotNull java.lang.String message)InvalidWebhookError(@NotNull java.lang.String message, @Nullable java.lang.Throwable cause)
-
-
-
Field Detail
-
SIGNATURE_MISMATCH
public static final java.lang.String SIGNATURE_MISMATCH
- See Also:
- Constant Field Values
-
INVALID_BASE64
public static final java.lang.String INVALID_BASE64
- See Also:
- Constant Field Values
-
GZIP_FAILED
public static final java.lang.String GZIP_FAILED
- See Also:
- Constant Field Values
-
INVALID_JSON
public static final java.lang.String INVALID_JSON
- See Also:
- Constant Field Values
-
-