hongluan-ui
Version:
Hongluan Component Library for Vue 3
22 lines (19 loc) • 532 B
JavaScript
import './types.mjs';
import { isString } from '@vue/shared';
class HongluanUIError extends Error {
constructor(m) {
super(m);
this.name = "HongluanUIError";
}
}
function throwError(scope, m) {
throw new HongluanUIError(`[${scope}] ${m}`);
}
function debugWarn(scope, message) {
if (process.env.NODE_ENV !== "production") {
const error = isString(scope) ? new HongluanUIError(`[${scope}] ${message}`) : scope;
console.warn(error);
}
}
export { debugWarn, throwError };
//# sourceMappingURL=error.mjs.map