Skip to main content

Class: AIJSXError

core/errors.AIJSXError

A generic error thrown by AI.JSX. It could be a user error, runtime error, or internal error.

Hierarchy

Constructors

constructor

new AIJSXError(message, code, blame, metadata?)

Parameters

NameType
messagestring
codeErrorCode
blameErrorBlame
metadataJsonifiable

Overrides

Error.constructor

Defined in

packages/ai-jsx/src/core/errors.ts:66

Properties

blame

Readonly blame: ErrorBlame

Defined in

packages/ai-jsx/src/core/errors.ts:69


code

Readonly code: ErrorCode

Defined in

packages/ai-jsx/src/core/errors.ts:68


metadata

Readonly metadata: Jsonifiable = {}

Defined in

packages/ai-jsx/src/core/errors.ts:70

Methods

toString

toString(): string

Returns

string

Defined in

packages/ai-jsx/src/core/errors.ts:92