Package io.getstream

Class Webhook.InvalidWebhookError

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Webhook.WebhookException
Enclosing class:
Webhook

public static class Webhook.InvalidWebhookError extends StreamException
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: