Class: RoomfulError
@roomful/core / RoomfulError
Class: RoomfulError
Section titled “Class: RoomfulError”Defined in: packages/core/src/roomful-error.ts:15
Represents an operational error raised by Roomful.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RoomfulError(
code,message,recoverable,cause?):RoomfulError
Defined in: packages/core/src/roomful-error.ts:40
Creates a new RoomfulError.
Parameters
Section titled “Parameters”The public error code.
message
Section titled “message”string
The human-readable error message.
recoverable
Section titled “recoverable”boolean
Whether the caller can reasonably retry.
cause?
Section titled “cause?”unknown
The original cause when available.
Returns
Section titled “Returns”RoomfulError
A new RoomfulError instance.
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlycause:unknown
Defined in: packages/core/src/roomful-error.ts:29
Exposes the original cause when available.
readonlycode:RoomfulErrorCode
Defined in: packages/core/src/roomful-error.ts:19
Identifies the error category.
message
Section titled “message”message:
string
Defined in: node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.name
recoverable
Section titled “recoverable”
readonlyrecoverable:boolean
Defined in: packages/core/src/roomful-error.ts:24
Indicates whether retrying the operation may succeed.
stack?
Section titled “stack?”
optionalstack:string
Defined in: node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack