Cubicle

CubicleOperationError

The CubicleOperationError class of @cubicle/sdk: its constructor, properties and methods.

An operation ended failed, or unknown (its Node lost track of it; exec is never replayed, so the command may or may not have run). code is operation_failed or operation_unknown, and operation is the finished operation: its error says why it failed.

Extends

Constructors

Constructor

new CubicleOperationError(operation): CubicleOperationError;

Parameters

ParameterTypeDescription
operationOperationThe finished operation. Its error says why it failed.

Returns

CubicleOperationError

Overrides

CubicleError.constructor

Properties

PropertyModifierTypeDescription
cause?publicunknown-
codereadonlystringA stable machine-readable code, such as not_found or wait_timeout.
messagepublicstring-
namepublicstringAlways "CubicleOperationError".
operationreadonlyOperationThe finished operation. Its error says why it failed.
stack?publicstring-

On this page