UNPKG

md2

Version:

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Chips(Tags), Collapse, Colorpicker, Data Table, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.

47 lines 1.54 kB
/** * Throws an exception when attempting to attach a null portal to a host. * @docs-private */ /** * Throws an exception when attempting to attach a null portal to a host. * @docs-private */ export function throwNullPortalError() { throw Error('Must provide a portal to attach'); } /** * Throws an exception when attempting to attach a portal to a host that is already attached. * @docs-private */ export function throwPortalAlreadyAttachedError() { throw Error('Host already has a portal attached'); } /** * Throws an exception when attempting to attach a portal to an already-disposed host. * @docs-private */ export function throwPortalHostAlreadyDisposedError() { throw Error('This PortalHost has already been disposed'); } /** * Throws an exception when attempting to attach an unknown portal type. * @docs-private */ export function throwUnknownPortalTypeError() { throw Error('Attempting to attach an unknown Portal type. BasePortalHost accepts either' + 'a ComponentPortal or a TemplatePortal.'); } /** * Throws an exception when attempting to attach a portal to a null host. * @docs-private */ export function throwNullPortalHostError() { throw Error('Attempting to attach a portal to a null PortalHost'); } /** * Throws an exception when attempting to detach a portal that is not attached. * @docs-privatew */ export function throwNoPortalAttachedError() { throw Error('Attempting to detach a portal that is not attached to a host'); } //# sourceMappingURL=portal-errors.js.map