UNPKG

@siren-js/core

Version:

Cross-platform library of classes for generating and parsing Siren entities

11 lines (10 loc) 321 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidationError = void 0; class ValidationError extends Error { constructor(errors) { super(`Validation failed with ${errors.length} errors`); this.errors = errors; } } exports.ValidationError = ValidationError;