Skip to content

Vibe coding a plugin? Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

ModelError

Thrown when the model rejects a query or an edit. Invalid arguments throw TypeError or RangeError instead. A failed edit rolls back the current operation, even if the script catches the error.

  • Error

new ModelError(message?): ModelError

string

ModelError

Error.constructor

new ModelError(message?, options?): ModelError

string

ErrorOptions

ModelError

Error.constructor

optional cause?: unknown

Error.cause


message: string

Error.message


readonly name: "ModelError"

Error.name


optional stack?: string

Error.stack