mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +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}`)
|
||
|
}
|