Cubicle

CubicleConnectionError

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

The Cubicle API could not be reached, or did not answer within the request timeout. code is connection_failed, request_timeout, or invalid_response for a successful response whose body is not JSON. cause holds the underlying error.

Extends

Constructors

Constructor

new CubicleConnectionError(
   code, 
   message, 
   options?
): CubicleConnectionError;

Parameters

ParameterTypeDescription
codestringA stable machine-readable code, such as not_found or wait_timeout.
messagestring-
options?{ cause?: unknown; }-
options.cause?unknown-

Returns

CubicleConnectionError

Inherited from

CubicleError.constructor

Properties

PropertyModifierTypeDescription
cause?publicunknown-
codereadonlystringA stable machine-readable code, such as not_found or wait_timeout.
messagepublicstring-
namepublicstringAlways "CubicleConnectionError".
stack?publicstring-

On this page