On This Page

CancelledError

Class in Errors · JavaScript & TypeScript

A default API operation was cancelled through its signal

The SDK returns this expected failure after required cleanup, not as proof that remote work was undone. Cancellation combined with an unexpected cleanup failure rejects with SdkDefect instead

class CancelledError extends FluxerlyErrorclass CancelledError
  extends FluxerlyError

Constructor#

new CancelledError(operation?: Operation): CancelledErrornew CancelledError(
  operation?: Operation
): CancelledError

Parameters

operation optional

The cancelled default API call, recorded as details.operation and named in the message

Defaults to undefined

Operation

Properties#

_tag#

Error tag for identifying cancellation in the default API

readonly _tag: "CancelledError"

Inherited#

Inherited from FluxerlyError: code, details, hint, toJSON