UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

14 lines (13 loc) 576 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnexpectedCodePathError = void 0; class UnexpectedCodePathError extends Error { constructor(reason, metadata) { super(` Unexpected code path error. ${reason.replace(/\.$/, '')}. This indicates a bug within the declapract library. Please file a ticket with this error message and stack trace. ${metadata ? JSON.stringify(metadata, null, 2) : ''} `.trim()); } } exports.UnexpectedCodePathError = UnexpectedCodePathError; //# sourceMappingURL=UnexpectedCodePathError.js.map