element-plus
Version:
A Component Library for Vue 3
1 lines • 835 B
Source Map (JSON)
{"version":3,"file":"error.mjs","sources":["../../../../packages/utils/error.ts"],"sourcesContent":["class ElementPlusError extends Error {\n constructor(m: string) {\n super(m)\n this.name = 'ElementPlusError'\n }\n}\n\nexport function throwError(scope: string, m: string): never {\n throw new ElementPlusError(`[${scope}] ${m}`)\n}\n\nexport function debugWarn(scope: string, message: string): void {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line no-console\n console.warn(new ElementPlusError(`[${scope}] ${message}`))\n }\n}\n"],"names":[],"mappings":"AAAA,+BAA+B,MAAM;AAAA,EACnC,YAAY,GAAW;AACrB,UAAM;AACN,SAAK,OAAO;AAAA;AAAA;oBAIW,OAAe,GAAkB;AAC1D,QAAM,IAAI,iBAAiB,IAAI,UAAU;AAAA;mBAGjB,OAAe,SAAuB;AAC9D,MAAI,QAAQ,IAAI,aAAa,cAAc;AAEzC,YAAQ,KAAK,IAAI,iBAAiB,IAAI,UAAU;AAAA;AAAA;;;;"}