title: mediawiki/client/error description: An error generated in a client runtime. $id: /mediawiki/client/error/2.0.0 $schema: http://json-schema.org/draft-07/schema# type: object allOf: - $ref: /fragment/common/1.1.0# - $ref: /fragment/http/1.2.0# - properties: error_class: type: string description: Name of constructor e.g. Error or ReferenceError. message: type: string description: Message explaining what happened. url: type: string description: URL of page on which the error occurred. file_url: type: string description: URL of the file where the error occurred. stack_trace: type: string description: Stack trace string. error_context: # Note: we need a reasonably unique name for this field, and # one that implies that it's an object. The data is sent to # Logstash, which has no schemas and handles field type # conflicts poorly. type: object maxProperties: 32 additionalProperties: type: string description: | Arbitrary extra data. Typically includes: - version: MediaWiki branch name - wiki: wiki ID - skin: skin name - user_language: user language - action: action (e.g. view, edit) - namespace: namespace where the error occured - page_title: title of page where the error occured - user_groups: comma-separated list of user groups - debug: truthy when ResourceLoader debug mode was enabled required: - message examples: - $schema: { $ref: "#/$id" } meta: stream: mediawiki.client.error dt: '2019-01-01T00:00:00Z' error_class: Error message: example error message url: http://en.wikipedia.org file_url: index.js error_context: page_title: Main_Page