11 lines
186 B
JavaScript
11 lines
186 B
JavaScript
'use strict'
|
|
|
|
function ValidationError (errors) {
|
|
this.name = 'ValidationError'
|
|
this.errors = errors
|
|
}
|
|
|
|
ValidationError.prototype = Error.prototype
|
|
|
|
module.exports = ValidationError
|