UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

22 lines (18 loc) 494 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = HARError; function HARError(errors) { let message = 'validation failed'; this.name = 'HARError'; this.message = message; this.errors = errors; if (typeof Error.captureStackTrace === 'function') { Error.captureStackTrace(this, this.constructor); } else { this.stack = new Error(message).stack; } } HARError.prototype = Error.prototype; module.exports = exports['default'];