UNPKG

2.97 kBSource Map (JSON)View Raw
1{"version":3,"sources":["core/portal/portal-errors.ts"],"names":[],"mappings":";;;;;OAAO,EAAC,OAAO,EAAC,MAAM,iBAAiB;AAEvC,gGAAgG;AAChG;IAAsE,oEAAO;IAC3E;QACI,kBACI,6EAA6E;YAC7E,yEAAyE,CAAC,CAAC;IACnF,CAAC;IACH,uDAAC;AAAD,CANA,AAMC,CANqE,OAAO,GAM5E;AAED,0EAA0E;AAC1E;IAAuC,qCAAO;IAC5C;QACI,kBAAM,iCAAiC,CAAC,CAAC;IAC7C,CAAC;IACH,wBAAC;AAAD,CAJA,AAIC,CAJsC,OAAO,GAI7C;AAED,8FAA8F;AAC9F;IAAkD,gDAAO;IACvD;QACI,kBAAM,oCAAoC,CAAC,CAAC;IAChD,CAAC;IACH,mCAAC;AAAD,CAJA,AAIC,CAJiD,OAAO,GAIxD;AAED,uFAAuF;AACvF;IAAsD,oDAAO;IAC3D;QACI,kBAAM,2CAA2C,CAAC,CAAC;IACvD,CAAC;IACH,uCAAC;AAAD,CAJA,AAIC,CAJqD,OAAO,GAI5D;AAED,yEAAyE;AACzE;IAA8C,4CAAO;IACnD;QACI,kBACE,+CAA+C;YAC/C,sEAAsE,CAAC,CAAC;IAC9E,CAAC;IACH,+BAAC;AAAD,CANA,AAMC,CAN6C,OAAO,GAMpD;AAED,0EAA0E;AAC1E;IAA2C,yCAAO;IAChD;QACI,kBAAM,oDAAoD,CAAC,CAAC;IAChE,CAAC;IACH,4BAAC;AAAD,CAJA,AAIC,CAJ0C,OAAO,GAIjD;AAED,gFAAgF;AAChF;IAA6C,2CAAO;IAClD;QACI,kBAAM,8DAA8D,CAAC,CAAC;IAC1E,CAAC;IACH,8BAAC;AAAD,CAJA,AAIC,CAJ4C,OAAO,GAInD","file":"core/portal/portal-errors.js","sourcesContent":["import {MdError} from '../errors/error';\n\n/** Exception thrown when a ComponentPortal is attached to a DomPortalHost without an origin. */\nexport class MdComponentPortalAttachedToDomWithoutOriginError extends MdError {\n constructor() {\n super(\n 'A ComponentPortal must have an origin set when attached to a DomPortalHost ' +\n 'because the DOM element is not part of the Angular application context.');\n }\n}\n\n/** Exception thrown when attempting to attach a null portal to a host. */\nexport class MdNullPortalError extends MdError {\n constructor() {\n super('Must provide a portal to attach');\n }\n}\n\n/** Exception thrown when attempting to attach a portal to a host that is already attached. */\nexport class MdPortalAlreadyAttachedError extends MdError {\n constructor() {\n super('Host already has a portal attached');\n }\n}\n\n/** Exception thrown when attempting to attach a portal to an already-disposed host. */\nexport class MdPortalHostAlreadyDisposedError extends MdError {\n constructor() {\n super('This PortalHost has already been disposed');\n }\n}\n\n/** Exception thrown when attempting to attach an unknown portal type. */\nexport class MdUnknownPortalTypeError extends MdError {\n constructor() {\n super(\n 'Attempting to attach an unknown Portal type. ' +\n 'BasePortalHost accepts either a ComponentPortal or a TemplatePortal.');\n }\n}\n\n/** Exception thrown when attempting to attach a portal to a null host. */\nexport class MdNullPortalHostError extends MdError {\n constructor() {\n super('Attempting to attach a portal to a null PortalHost');\n }\n}\n\n/** Exception thrown when attempting to detach a portal that is not attached. */\nexport class MdNoPortalAttachedError extends MdError {\n constructor() {\n super('Attempting to detach a portal that is not attached to a host');\n }\n}\n"],"sourceRoot":"/source/"}
\No newline at end of file