Package io.getstream
Class Webhook.InvalidWebhookError
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.getstream.exceptions.StreamException
io.getstream.Webhook.InvalidWebhookError
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Webhook.WebhookException
- Enclosing class:
Webhook
Thrown for every webhook handling failure: signature mismatch, invalid JSON, missing/non-string
type field, gzip-prefixed body that fails to decompress, invalid base64 in a queue
body, or a malformed SNS envelope.
Catch this single class for any webhook problem; filter on the message text or against the failure-mode constants below to differentiate.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.getstream.exceptions.StreamException
StreamException.ResponseData -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInvalidWebhookError(String message) InvalidWebhookError(String message, Throwable cause) -
Method Summary
Methods inherited from class io.getstream.exceptions.StreamException
build, build, build, buildMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
SIGNATURE_MISMATCH
- See Also:
-
INVALID_BASE64
- See Also:
-
GZIP_FAILED
- See Also:
-
INVALID_JSON
- See Also:
-
-
Constructor Details
-
InvalidWebhookError
-
InvalidWebhookError
-