UNPKG

@case-contract-testing/case

Version:

Next-generation contract testing suite

13 lines (12 loc) 554 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CaseConfigurationError = void 0; const locationString = (matchContext) => ` (at ${matchContext['case:currentRun:context:location'].join('.')})`; class CaseConfigurationError extends Error { constructor(message, context) { super(`${message}${context ? locationString(context) : ''}`); Object.setPrototypeOf(this, new.target.prototype); this.name = CaseConfigurationError.name; } } exports.CaseConfigurationError = CaseConfigurationError;