"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EdgeError = void 0;
class EdgeError extends Error {
    message;
    code;
    line;
    col;
    filename;
    constructor(message, code, options) {
        super(message);
        this.message = message;
        this.code = code;
        this.line = options.line;
        this.col = options.col;
        this.filename = options.filename;
        const stack = this.stack.split('\n');
        stack.splice(1, 0, `    at anonymous (${this.filename}:${this.line}:${this.col})`);
        this.stack = stack.join('\n');
    }
}
exports.EdgeError = EdgeError;
