On This Page

BotApplicationOperationError

Class in Errors · JavaScript & TypeScript

The SDK could not read the current bot application

Local input checks, the connection, the deadline or an unusable Fluxer response stopped the read. Metadata includes no credentials, private application fields or upstream response bodies. This read cannot modify the application, even when its request outcome is unknown

class BotApplicationOperationError extends FluxerlyErrorclass BotApplicationOperationError
  extends FluxerlyError

Constructor#

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

new BotApplicationOperationError(
    options: OperationErrorOptions<"application.fetch">
): BotApplicationOperationErrornew BotApplicationOperationError(
  options: OperationErrorOptions<
    "application.fetch"
  >
): BotApplicationOperationError

Parameters

options
OperationErrorOptions<"application.fetch">OperationErrorOptions<
  "application.fetch"
>

Properties#

_tag#

Stable expected-failure discriminator

readonly _tag: "BotApplicationOperationError"

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: "application.fetch"

outcome#

Whether the request may have reached Fluxer, described by OperationOutcome

The failed operation only reads, so even an unknown outcome cannot have changed the application

readonly outcome: OperationOutcome

reason#

Input validation, full local capacity, HTTP 404 or another rejection, network failure, invalid response, deadline expiry 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