Class in Errors · JavaScript & TypeScript
An expected failure while managing a webhook or one of its messages
Use reason to distinguish invalid input, an unavailable service or a rejected request, and outcome before deciding whether to retry a write. If the outcome is unknown, Fluxer may already have made the change. When possible, fetch the current state before trying again. Error details exclude secret-bearing URLs, raw response bodies and the submitted values. A missing-permission rejection lists the permissions that the operation needs in details when the SDK knows them, as Api describes
class WebhookOperationError extends FluxerlyErrorclass WebhookOperationError
extends FluxerlyErrorConstructor#
Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause
new WebhookOperationError(
options: OperationErrorOptions<WebhookOperation>
): WebhookOperationErrornew WebhookOperationError(
options: OperationErrorOptions<
WebhookOperation
>
): WebhookOperationErrorParameters
Properties#
_tag#
Identifies this error in a switch or another tagged-error check
readonly _tag: "WebhookOperationError"apiError #
Recognized explanation of Fluxer's rejection, without raw response data, or null when unavailable
readonly apiError: ApiErrorDetail | nullreadonly apiError:
| ApiErrorDetail | nullinputValidation #
Safe explanation of the locally invalid property, or null when no input problem could be identified
readonly inputValidation: InputValidationDetail | nullreadonly inputValidation:
| InputValidationDetail | nulloperation#
Webhook action the application attempted
readonly operation: WebhookOperationoutcome#
Whether the request may have reached Fluxer, described by Operation
readonly outcome: OperationOutcomereason#
Failure category, described by Operation
The reason not may indicate an invalid token, not just a missing webhook
readonly reason: OperationReasonretryAfterMs #
Delay requested by Fluxer before retrying, in milliseconds, or null when unavailable
readonly retryAfterMs: number | nullreadonly retryAfterMs:
| number | nullstatus#
HTTP response status when one was received, or null when it is unavailable
readonly status: number | nullInherited#
Inherited from Fluxerly: code, details, hint, to