lisn.js
Version:
Simply handle user gestures and actions. Includes widgets.
1 lines • 1.57 kB
Source Map (JSON)
{"version":3,"file":"errors.cjs","names":["_minificationConstants","require","LisnError","Error","exports","LisnUsageError","constructor","message","LOG_PREFIX","name","LisnBugError"],"sources":["../../../src/ts/globals/errors.ts"],"sourcesContent":["/**\n * @module Errors\n */\n\nimport { LOG_PREFIX } from \"@lisn/globals/minification-constants\";\n\n/**\n * Base error type emitted by LISN.\n */\nexport abstract class LisnError extends Error {}\n\n/**\n * Error type emitted for invalid input or incorrect usage of a function.\n */\nexport class LisnUsageError extends LisnError {\n constructor(message = \"\") {\n super(`${LOG_PREFIX} Incorrect usage: ${message}`);\n this.name = \"LisnUsageError\";\n }\n}\n\n/**\n * Error type emitted if an assertion is wrong => report bug.\n */\nexport class LisnBugError extends LisnError {\n constructor(message = \"\") {\n super(`${LOG_PREFIX} Please report a bug: ${message}`);\n this.name = \"LisnBugError\";\n }\n}\n"],"mappings":";;;;;;AAIA,IAAAA,sBAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA;AACA;AACA;AACO,MAAeC,SAAS,SAASC,KAAK,CAAC;;AAE9C;AACA;AACA;AAFAC,OAAA,CAAAF,SAAA,GAAAA,SAAA;AAGO,MAAMG,cAAc,SAASH,SAAS,CAAC;EAC5CI,WAAWA,CAACC,OAAO,GAAG,EAAE,EAAE;IACxB,KAAK,CAAC,GAAGC,iCAAU,qBAAqBD,OAAO,EAAE,CAAC;IAClD,IAAI,CAACE,IAAI,GAAG,gBAAgB;EAC9B;AACF;;AAEA;AACA;AACA;AAFAL,OAAA,CAAAC,cAAA,GAAAA,cAAA;AAGO,MAAMK,YAAY,SAASR,SAAS,CAAC;EAC1CI,WAAWA,CAACC,OAAO,GAAG,EAAE,EAAE;IACxB,KAAK,CAAC,GAAGC,iCAAU,yBAAyBD,OAAO,EAAE,CAAC;IACtD,IAAI,CAACE,IAAI,GAAG,cAAc;EAC5B;AACF;AAACL,OAAA,CAAAM,YAAA,GAAAA,YAAA","ignoreList":[]}