mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
11 lines
227 B
TypeScript
11 lines
227 B
TypeScript
class ElementPlusError extends Error {
|
|
constructor(m: string) {
|
|
super(m)
|
|
this.name = 'ElementPlusError: '
|
|
}
|
|
}
|
|
|
|
export default (compName: string, m: string) => {
|
|
throw new ElementPlusError(`[${compName}]: ${m}`)
|
|
}
|