UNPKG

360 BJavaScriptView Raw
1class UiengineInputError extends Error {
2 constructor (message, originalError) {
3 if (message instanceof Array) {
4 message = message.join('\n\n')
5 }
6 super(message)
7
8 this.name = this.constructor.name
9 this.originalError = originalError
10
11 Error.captureStackTrace(this, this.constructor)
12 }
13}
14
15module.exports = {
16 UiengineInputError
17}