Skip to content
Roomful is in public beta — install with the @beta tag. Share feedback →

Class: RoomfulError

@roomful/core


@roomful/core / RoomfulError

Defined in: packages/core/src/roomful-error.ts:15

Represents an operational error raised by Roomful.

  • Error

new RoomfulError(code, message, recoverable, cause?): RoomfulError

Defined in: packages/core/src/roomful-error.ts:40

Creates a new RoomfulError.

RoomfulErrorCode

The public error code.

string

The human-readable error message.

boolean

Whether the caller can reasonably retry.

unknown

The original cause when available.

RoomfulError

A new RoomfulError instance.

Error.constructor

readonly cause: unknown

Defined in: packages/core/src/roomful-error.ts:29

Exposes the original cause when available.


readonly code: RoomfulErrorCode

Defined in: packages/core/src/roomful-error.ts:19

Identifies the error category.


message: string

Defined in: node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message


name: string

Defined in: node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name


readonly recoverable: boolean

Defined in: packages/core/src/roomful-error.ts:24

Indicates whether retrying the operation may succeed.


optional stack: string

Defined in: node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack