UNPKG

ng-messages2

Version:
87 lines 3.51 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var error_1 = require("./error"); /** * Exception thrown when attempting to attach a null portal to a host. * @docs-private */ var NullPortalError = (function (_super) { __extends(NullPortalError, _super); function NullPortalError() { return _super.call(this, 'Must provide a portal to attach') || this; } return NullPortalError; }(error_1.ClError)); exports.NullPortalError = NullPortalError; /** * Exception thrown when attempting to attach a portal to a host that is already attached. * @docs-private */ var PortalAlreadyAttachedError = (function (_super) { __extends(PortalAlreadyAttachedError, _super); function PortalAlreadyAttachedError() { return _super.call(this, 'Host already has a portal attached') || this; } return PortalAlreadyAttachedError; }(error_1.ClError)); exports.PortalAlreadyAttachedError = PortalAlreadyAttachedError; /** * Exception thrown when attempting to attach a portal to an already-disposed host. * @docs-private */ var PortalHostAlreadyDisposedError = (function (_super) { __extends(PortalHostAlreadyDisposedError, _super); function PortalHostAlreadyDisposedError() { return _super.call(this, 'This PortalHost has already been disposed') || this; } return PortalHostAlreadyDisposedError; }(error_1.ClError)); exports.PortalHostAlreadyDisposedError = PortalHostAlreadyDisposedError; /** * Exception thrown when attempting to attach an unknown portal type. * @docs-private */ var UnknownPortalTypeError = (function (_super) { __extends(UnknownPortalTypeError, _super); function UnknownPortalTypeError() { return _super.call(this, 'Attempting to attach an unknown Portal type. ' + 'BasePortalHost accepts either a ComponentPortal or a TemplatePortal.') || this; } return UnknownPortalTypeError; }(error_1.ClError)); exports.UnknownPortalTypeError = UnknownPortalTypeError; /** * Exception thrown when attempting to attach a portal to a null host. * @docs-private */ var NullPortalHostError = (function (_super) { __extends(NullPortalHostError, _super); function NullPortalHostError() { return _super.call(this, 'Attempting to attach a portal to a null PortalHost') || this; } return NullPortalHostError; }(error_1.ClError)); exports.NullPortalHostError = NullPortalHostError; /** * Exception thrown when attempting to detach a portal that is not attached. * @docs-private */ var NoPortalAttachedError = (function (_super) { __extends(NoPortalAttachedError, _super); function NoPortalAttachedError() { return _super.call(this, 'Attempting to detach a portal that is not attached to a host') || this; } return NoPortalAttachedError; }(error_1.ClError)); exports.NoPortalAttachedError = NoPortalAttachedError; //# sourceMappingURL=portal-errors.js.map