{"record":{"id":"7dea4818daba6667","repo":"avajs/ava","slug":"not-implemented","errorCode":null,"errorMessage":"not implemented","messagePattern":"not implemented","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/assert.js","lineNumber":34,"sourceCode":"\t\tformatted: concordance.diffDescriptors(actualDescriptor, expectedDescriptor, options),\n\t};\n}\n\nfunction formatDescriptorWithLabel(label, descriptor) {\n\treturn {\n\t\tlabel,\n\t\tformatted: concordance.formatDescriptor(descriptor, concordanceOptions),\n\t};\n}\n\nfunction formatWithLabel(label, value) {\n\treturn formatDescriptorWithLabel(label, concordance.describe(value, concordanceOptions));\n}\n\nconst noop = () => {};\n\nconst notImplemented = () => {\n\tthrow new Error('not implemented');\n};\n\nexport class AssertionError extends Error {\n\tconstructor(message = '', {\n\t\tassertion,\n\t\tassertionStack = getAssertionStack(AssertionError),\n\t\tformattedDetails = [],\n\t\timproperUsage = null,\n\t\tcause,\n\t} = {}) {\n\t\tsuper(message, {cause});\n\t\tthis.name = 'AssertionError';\n\n\t\tthis.assertion = assertion;\n\t\tthis.assertionStack = assertionStack;\n\t\tthis.improperUsage = improperUsage;\n\t\tthis.formattedDetails = formattedDetails;\n\t}","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/avajs/ava/blob/bbfd946322fdeca2b547a691d947fb4e18c0c67f/lib/assert.js#L16-L52","documentation":"Generic sentinel error thrown by the notImplemented placeholder in lib/assert.js. Certain Assertion API surface (methods stubbed out or not yet supported in this AVA version/environment) is wired to this stub, so calling them always throws instead of failing silently. The input at fault is the invocation of a stubbed assertion method.","triggerScenarios":"Thrown at lib/assert.js:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Identify which assertion method hit the stub and use a supported AVA assertion instead","Upgrade AVA — stubs typically mark features pending implementation in that version","Avoid shimming t.assert internals in test files"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bbfd946322fdeca2b547a691d947fb4e18c0c67f","analyzedAt":"2026-09-02T01:24:43.834Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}