UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

15 lines (9 loc) 306 B
'use strict'; module.exports = ValidationError; function ValidationError(errors) { this.message = 'validation failed'; this.errors = errors; this.ajv = this.validation = true; } ValidationError.prototype = Object.create(Error.prototype); ValidationError.prototype.constructor = ValidationError;