10 lines
188 B
JavaScript
10 lines
188 B
JavaScript
// 直接回复错误类型
|
|
global.ReplyError = class ReplyError extends Error {
|
|
constructor (message) {
|
|
super(message)
|
|
this.name = 'ReplyError'
|
|
}
|
|
}
|
|
|
|
throw new ReplyError('a')
|