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
| Parameter | Type | Description |
|---|---|---|
code | string | A stable machine-readable code, such as not_found or wait_timeout. |
message | string | - |
options? | { cause?: unknown; } | - |
options.cause? | unknown | - |
Returns
CubicleConnectionError

