For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiError.md.
  • 中文
  • Interface: ApiError

    Defined in: envelope/index.ts:138

    The error object under the default (bc) errorformat.

    Indexable

    [key: string]: unknown

    Structured data attached to the message by the emitting code, merged into this object as top-level keys.

    Properties

    code

    code: string

    Defined in: envelope/index.ts:140

    Machine-readable error code, e.g. badtoken.


    docref?

    optional docref?: string

    Defined in: envelope/index.ts:146

    Docs link plus deprecation notices; nested in error under the bc format.


    info

    info: string

    Defined in: envelope/index.ts:143

    Human-readable description provided by the server.


    trace?

    optional trace?: string

    Defined in: envelope/index.ts:149

    PHP backtrace, when $wgShowExceptionDetails is on (non-usage exceptions).