roc
Version:
Build modern web applications easily
23 lines (20 loc) • 554 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
class ExtensionError extends Error {
constructor(message, extension, version, path) {
super(message);
this.extension = extension;
this.version = version;
this.path = path;
}
toString() {
return this.message + '\nOccurred in: ' + `${ this.extension }${ this.version ? '@' + this.version : '' }`;
}
getPath() {
return this.path;
}
}
exports.default = ExtensionError;
//# sourceMappingURL=error.js.map