Skip to content

Class: RoomfulError

@roomful/core


@roomful/core / RoomfulError

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

Represents an operational error raised by Roomful.

  • Error

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

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

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:31

Exposes the original cause when available.

Error.cause


readonly code: RoomfulErrorCode

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

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:26

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