UNPKG

ll-package

Version:

2 lines (1 loc) 1.6 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../../_virtual/exceptions.js");Object.defineProperty(r.__exports,"__esModule",{value:!0});function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function p(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){p(t,e);function t(n,u){i(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.name="InvalidInputException",o.symbology=n,o.input=u,o.message='"'+o.input+'" is not a valid input for '+o.symbology,o}return t}(Error),l=function(e){p(t,e);function t(){i(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.name="InvalidElementException",n.message="Not supported type to render on",n}return t}(Error),_=function(e){p(t,e);function t(){i(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.name="NoElementException",n.message="No element to render on.",n}return t}(Error);r.__exports.InvalidInputException=a;r.__exports.InvalidElementException=l;r.__exports.NoElementException=_;exports.default=r.__exports;