On This Page

AttachmentRefreshError

Class in Errors · JavaScript & TypeScript

The SDK could not refresh one ordered batch of attachment URL strings

Failures contain no requested URL, refreshed URL, response body or credential. HTTP 404 does not distinguish an older unsupported deployment from an unavailable route or denied access

class AttachmentRefreshError extends FluxerlyErrorclass AttachmentRefreshError
  extends FluxerlyError

Constructor#

Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause

new AttachmentRefreshError(
    options: OperationErrorOptions<"attachments.refreshUrls">
): AttachmentRefreshErrornew AttachmentRefreshError(
  options: OperationErrorOptions<
    "attachments.refreshUrls"
  >
): AttachmentRefreshError

Parameters

options
OperationErrorOptions<"attachments.refreshUrls">OperationErrorOptions<
  "attachments.refreshUrls"
>

Properties#

_tag#

Stable expected-failure discriminator

readonly _tag: "AttachmentRefreshError"

apiError#

Reviewed Fluxer rejection detail, or null when no safe classification is available

readonly apiError: ApiErrorDetail | nullreadonly apiError:
  | ApiErrorDetail | null

inputValidation#

Safe explanation of the locally invalid property, or null when no input problem could be identified

readonly inputValidation: InputValidationDetail | nullreadonly inputValidation:
  | InputValidationDetail | null

operation#

Requested operation

readonly operation: "attachments.refreshUrls"

outcome#

Whether the request may have reached Fluxer, described by OperationOutcome

Refreshing does not create or change an attachment, but an unknown outcome cannot recover a lost response

readonly outcome: OperationOutcome

reason#

Input validation, local capacity, HTTP 404 or another rejection, transport, response decoding, deadline or rate limit

readonly reason: OperationReason

retryAfterMs#

Fluxer's retry delay in milliseconds when usable, otherwise null

readonly retryAfterMs: number | nullreadonly retryAfterMs:
  | number | null

status#

HTTP status when received, otherwise null

readonly status: number | null

Inherited#

Inherited from FluxerlyError: code, details, hint, toJSON