"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorWithName = void 0;
/** An error type that allows passing the error name in the constructor,
 * in addition to the error message. */
class ErrorWithName extends Error {
    constructor(message, name) {
        super(message);
        this.name = name;
    }
}
exports.ErrorWithName = ErrorWithName;
//# sourceMappingURL=types.js.map