microfoom

FoomtimeThrowError

Class: FoomtimeThrowError

Defined in: packages/microfoom-core/src/errors.ts:51

Raised ONLY by a deliberate foom_throw in a prompt. ALWAYS carries the user-defined code from foom_throw (the caller's namespace, e.g. "123" / "E_TOO_LOW"); it has no runtime meaning. Runtime-caught failures are FoomtimeRepairExhaustedError, NOT this — they have no code.

Extends

Constructors

Constructor

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

Defined in: packages/microfoom-core/src/errors.ts:53

Parameters

ParameterType
messagestring
codestring
options?FoomtimeErrorOptions

Returns

FoomtimeThrowError

Overrides

FoomtimeError.constructor

Properties

cause?

optional cause?: unknown;

Defined in: docs-website/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from

FoomtimeError.cause


code

readonly code: string;

Defined in: packages/microfoom-core/src/errors.ts:52


data?

readonly optional data?: unknown;

Defined in: packages/microfoom-core/src/errors.ts:37

Inherited from

FoomtimeError.data


message

message: string;

Defined in: docs-website/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from

FoomtimeError.message


name

name: string;

Defined in: docs-website/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from

FoomtimeError.name


stack?

optional stack?: string;

Defined in: docs-website/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from

FoomtimeError.stack

On this page