UNPKG

fracturedjsonjs

Version:

JSON formatter that produces highly readable but fairly compact output

13 lines (12 loc) 431 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FracturedJsonError = void 0; class FracturedJsonError extends Error { constructor(message, pos) { const msgWithPos = (pos) ? `${message} at idx=${pos.Index}, row=${pos.Row}, col=${pos.Column}` : message; super(msgWithPos); this.InputPosition = pos; } } exports.FracturedJsonError = FracturedJsonError;