UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

21 lines (18 loc) 534 B
import { isString } from '@vue/shared'; class IvueMaterialPlusError extends Error { constructor(m) { super(m); this.name = "IvueMaterialPlusError"; } } function throwError(scope, m) { throw new IvueMaterialPlusError(`[${scope}] ${m}`); } function debugWarn(scope, message) { if (process.env.NODE_ENV !== "production") { const error = isString(scope) ? new IvueMaterialPlusError(`[${scope}] ${message}`) : scope; console.warn(error); } } export { debugWarn, throwError }; //# sourceMappingURL=error.mjs.map