source: trip-planner-front/node_modules/@angular/cdk/esm2015/portal/portal-errors.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 4.7 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/**
9 * Throws an exception when attempting to attach a null portal to a host.
10 * @docs-private
11 */
12export function throwNullPortalError() {
13 throw Error('Must provide a portal to attach');
14}
15/**
16 * Throws an exception when attempting to attach a portal to a host that is already attached.
17 * @docs-private
18 */
19export function throwPortalAlreadyAttachedError() {
20 throw Error('Host already has a portal attached');
21}
22/**
23 * Throws an exception when attempting to attach a portal to an already-disposed host.
24 * @docs-private
25 */
26export function throwPortalOutletAlreadyDisposedError() {
27 throw Error('This PortalOutlet has already been disposed');
28}
29/**
30 * Throws an exception when attempting to attach an unknown portal type.
31 * @docs-private
32 */
33export function throwUnknownPortalTypeError() {
34 throw Error('Attempting to attach an unknown Portal type. BasePortalOutlet accepts either ' +
35 'a ComponentPortal or a TemplatePortal.');
36}
37/**
38 * Throws an exception when attempting to attach a portal to a null host.
39 * @docs-private
40 */
41export function throwNullPortalOutletError() {
42 throw Error('Attempting to attach a portal to a null PortalOutlet');
43}
44/**
45 * Throws an exception when attempting to detach a portal that is not attached.
46 * @docs-private
47 */
48export function throwNoPortalAttachedError() {
49 throw Error('Attempting to detach a portal that is not attached to a host');
50}
51//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9ydGFsLWVycm9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jZGsvcG9ydGFsL3BvcnRhbC1lcnJvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUg7OztHQUdHO0FBQ0gsTUFBTSxVQ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