mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +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}`)
|
||
|
}
|