You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
649 B
27 lines
649 B
2 months ago
|
'use strict';
|
||
|
|
||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||
|
|
||
|
require('./types.js');
|
||
|
var shared = require('@vue/shared');
|
||
|
|
||
|
class ElementPlusError extends Error {
|
||
|
constructor(m) {
|
||
|
super(m);
|
||
|
this.name = "ElementPlusError";
|
||
|
}
|
||
|
}
|
||
|
function throwError(scope, m) {
|
||
|
throw new ElementPlusError(`[${scope}] ${m}`);
|
||
|
}
|
||
|
function debugWarn(scope, message) {
|
||
|
if (process.env.NODE_ENV !== "production") {
|
||
|
const error = shared.isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
||
|
console.warn(error);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
exports.debugWarn = debugWarn;
|
||
|
exports.throwError = throwError;
|
||
|
//# sourceMappingURL=error.js.map
|