Base class for every exception thrown by the webhook library.
Catch the subtypes to tell the cases apart:
- WebhookVerificationException: the delivery could not be verified, so it may not come from AhaSend. Answer with an HTTP 4xx status and do not process it.
- InvalidPayloadException: the delivery is authentic, but its body is not a payload this version of the package can decode. Retrying will not help, so store the body for a look later and answer with a 2xx status. AhaSend disables a webhook after many failed deliveries.
- Implemented types
- Implementers
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited