Skip to content

CodeScriptError

Defined in: mcp-code/src/lib/errors.ts:29

The script itself failed — a syntax error, or an uncaught error that isn’t a Mantle service error (e.g. a TypeError from calling a method the API doesn’t have). Uncaught service errors (Forbidden, NotFound, …) surface as their own class instead.

new CodeScriptError(message?, data?, errors?, hint?): CodeScriptError

Defined in: mcp-code/src/lib/errors.ts:30

string = "Code execution failed"

unknown

unknown[]

string

CodeScriptError

MantleError.constructor

readonly className: string

Defined in: mantle/dist/lib/errors.d.ts:3

MantleError.className


readonly code: number

Defined in: mantle/dist/lib/errors.d.ts:2

MantleError.code


readonly optional data?: unknown

Defined in: mantle/dist/lib/errors.d.ts:4

MantleError.data


readonly optional errors?: unknown[]

Defined in: mantle/dist/lib/errors.d.ts:5

MantleError.errors


readonly optional hint?: string

Defined in: mantle/dist/lib/errors.d.ts:7

Actionable guidance for the caller — what to change so the request succeeds. Serialized in toJSON().

MantleError.hint

toJSON(): Record<string, unknown>

Defined in: mantle/dist/lib/errors.d.ts:9

Record<string, unknown>

MantleError.toJSON