{ "type": "Script", "span": { "start": 107, "end": 393, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 113, "end": 123, "ctxt": 0 }, "value": "FancyError", "optional": false }, "declare": false, "span": { "start": 107, "end": 219, "ctxt": 0 }, "decorators": [], "body": [ { "type": "Constructor", "span": { "start": 144, "end": 217, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 144, "end": 155, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "Parameter", "span": { "start": 156, "end": 162, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 156, "end": 162, "ctxt": 0 }, "value": "status", "optional": false, "typeAnnotation": null } } ], "body": { "type": "BlockStatement", "span": { "start": 164, "end": 217, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 174, "end": 211, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 174, "end": 210, "ctxt": 0 }, "callee": { "type": "Super", "span": { "start": 174, "end": 179, "ctxt": 0 } }, "arguments": [ { "spread": null, "expression": { "type": "TemplateLiteral", "span": { "start": 180, "end": 209, "ctxt": 0 }, "expressions": [ { "type": "Identifier", "span": { "start": 201, "end": 207, "ctxt": 0 }, "value": "status", "optional": false } ], "quasis": [ { "type": "TemplateElement", "span": { "start": 181, "end": 199, "ctxt": 0 }, "tail": false, "cooked": "error with status ", "raw": "error with status " }, { "type": "TemplateElement", "span": { "start": 208, "end": 208, "ctxt": 0 }, "tail": true, "cooked": "", "raw": "" } ] } } ], "typeArguments": null } } ] }, "accessibility": null, "isOptional": false } ], "superClass": { "type": "Identifier", "span": { "start": 132, "end": 137, "ctxt": 0 }, "value": "Error", "optional": false }, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ExpressionStatement", "span": { "start": 221, "end": 257, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 221, "end": 256, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 221, "end": 235, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 221, "end": 227, "ctxt": 0 }, "value": "module", "optional": false }, "property": { "type": "Identifier", "span": { "start": 228, "end": 235, "ctxt": 0 }, "value": "exports", "optional": false } }, "right": { "type": "ObjectExpression", "span": { "start": 238, "end": 256, "ctxt": 0 }, "properties": [ { "type": "Identifier", "span": { "start": 244, "end": 254, "ctxt": 0 }, "value": "FancyError", "optional": false } ] } } }, { "type": "VariableDeclaration", "span": { "start": 324, "end": 359, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 330, "end": 358, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 330, "end": 336, "ctxt": 0 }, "value": "errors", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 339, "end": 358, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 339, "end": 346, "ctxt": 0 }, "value": "require", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 347, "end": 357, "ctxt": 0 }, "value": "./errors", "raw": "\"./errors\"" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 361, "end": 393, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 361, "end": 392, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 361, "end": 375, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 361, "end": 367, "ctxt": 0 }, "value": "module", "optional": false }, "property": { "type": "Identifier", "span": { "start": 368, "end": 375, "ctxt": 0 }, "value": "exports", "optional": false } }, "right": { "type": "ObjectExpression", "span": { "start": 378, "end": 392, "ctxt": 0 }, "properties": [ { "type": "Identifier", "span": { "start": 384, "end": 390, "ctxt": 0 }, "value": "errors", "optional": false } ] } } } ], "interpreter": null }