UNPKG

serialport-v5

Version:

fork with electron support of Node.js package to access serial ports. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!

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;