UNPKG

@uiengine/util

Version:
18 lines (14 loc) 360 B
class UiengineInputError extends Error { constructor (message, originalError) { if (message instanceof Array) { message = message.join('\n\n') } super(message) this.name = this.constructor.name this.originalError = originalError Error.captureStackTrace(this, this.constructor) } } module.exports = { UiengineInputError }