UNPKG

@segment/analytics-core

Version:

This package represents core 'shared' functionality that is shared by analytics packages. This is not designed to be used directly, but internal to analytics-node and analytics-browser.

15 lines 554 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidationError = void 0; var tslib_1 = require("tslib"); var ValidationError = /** @class */ (function (_super) { tslib_1.__extends(ValidationError, _super); function ValidationError(field, message) { var _this = _super.call(this, "".concat(field, " ").concat(message)) || this; _this.field = field; return _this; } return ValidationError; }(Error)); exports.ValidationError = ValidationError; //# sourceMappingURL=errors.js.map