UNPKG

@gabliam/web-core

Version:
18 lines (17 loc) 551 B
"use strict"; 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;