UNPKG

@contract-case/case-plugin-base

Version:

Plugin framework for writing plugins for the ContractCase test framework

24 lines 925 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CaseCoreError = void 0; const renderer_1 = require("./renderer"); /** * Something went wrong in ContractCase internals. * * @remarks * Use this when there is almost certainly a bug in the implementation of the contract case core or your plugin. * * If used during a plugin execution, please include the plugin name / bug reporting instructions in the message. * @public */ class CaseCoreError extends Error { userFacingStackTrace; constructor(message, context, userFacingStackTrace) { super(`${message}${context ? (0, renderer_1.errorLocationString)(context) : ''}`); Object.setPrototypeOf(this, new.target.prototype); this.name = 'CaseCoreError'; this.userFacingStackTrace = userFacingStackTrace ?? ''; } } exports.CaseCoreError = CaseCoreError; //# sourceMappingURL=CaseCoreError.js.map