For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/api/extensions/scribunto/ApiScribuntoConsoleError.md.
  • English
  • Interface: ApiScribuntoConsoleError

    Defined in: extensions/scribunto.ts:56

    The type: "error" shape (a Lua error reported in band).

    Extends

    • ApiScribuntoConsoleBase

    Properties

    html?

    optional html?: string

    Defined in: extensions/scribunto.ts:58

    Rendered error plus backtrace HTML (<ol class="scribunto-trace">…).


    message?

    optional message?: string

    Defined in: extensions/scribunto.ts:61

    Plain-text error message.


    messagename?

    optional messagename?: string

    Defined in: extensions/scribunto.ts:64

    i18n key of message.


    session?

    optional session?: number

    Defined in: extensions/scribunto.ts:34

    Opaque console session id; echo it back (via a stable cookie) to keep state across questions.

    Inherited from

    ApiScribuntoConsoleBase.session


    sessionIsNew?

    optional sessionIsNew?: ""

    Defined in: extensions/scribunto.ts:43

    Valueless flag: the empty string when this question started a new session, else absent.

    Inherited from

    ApiScribuntoConsoleBase.sessionIsNew


    sessionMaxSize?

    optional sessionMaxSize?: number

    Defined in: extensions/scribunto.ts:40

    Byte ceiling before scribunto-console-too-large is raised.

    Inherited from

    ApiScribuntoConsoleBase.sessionMaxSize


    sessionSize?

    optional sessionSize?: number

    Defined in: extensions/scribunto.ts:37

    Bytes used so far in the session (content plus accumulated questions).

    Inherited from

    ApiScribuntoConsoleBase.sessionSize


    type?

    optional type?: ScribuntoConsoleType

    Defined in: extensions/scribunto.ts:31

    Whether the question evaluated cleanly (normal) or raised a Lua error (error).

    Inherited from

    ApiScribuntoConsoleBase.type