@gabliam/web-core
Version:
Gabliam plugin for add web-core
18 lines (17 loc) • 551 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BadPipeError = void 0;
/**
* Exception when Pipe not implement Pipe
*/
class BadPipeError extends Error {
constructor(pipe) {
super();
this.name = 'BadPipeError';
// Set the prototype explicitly.
Object.setPrototypeOf(this, BadPipeError.prototype);
const name = pipe.constructor ? pipe.constructor.name : pipe;
this.message = `${name} must implement Pipe interface`;
}
}
exports.BadPipeError = BadPipeError;