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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CodeScriptError(
message?,data?,errors?,hint?):CodeScriptError
Defined in: mcp-code/src/lib/errors.ts:30
Parameters
Section titled “Parameters”message?
Section titled “message?”string = "Code execution failed"
unknown
errors?
Section titled “errors?”unknown[]
string
Returns
Section titled “Returns”CodeScriptError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”className
Section titled “className”
readonlyclassName:string
Defined in: mantle/dist/lib/errors.d.ts:3
Inherited from
Section titled “Inherited from”
readonlycode:number
Defined in: mantle/dist/lib/errors.d.ts:2
Inherited from
Section titled “Inherited from”
readonlyoptionaldata?:unknown
Defined in: mantle/dist/lib/errors.d.ts:4
Inherited from
Section titled “Inherited from”errors?
Section titled “errors?”
readonlyoptionalerrors?:unknown[]
Defined in: mantle/dist/lib/errors.d.ts:5
Inherited from
Section titled “Inherited from”
readonlyoptionalhint?: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().
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON():
Record<string,unknown>
Defined in: mantle/dist/lib/errors.d.ts:9
Returns
Section titled “Returns”Record<string, unknown>