"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) Eif (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var _errors_1 = require("../_errors");
var RegexMatchError = (function (_super) {
__extends(RegexMatchError, _super);
function RegexMatchError(actualValue, expectedRegex, shouldMatch) {
_super.call(this, actualValue, expectedRegex, "Expected " + JSON.stringify(actualValue) + " " + (!shouldMatch ? "not " : "") + "to conform to " + expectedRegex + ".");
}
return RegexMatchError;
}(_errors_1.MatchError));
exports.RegexMatchError = RegexMatchError;
//# sourceMappingURL=regex-match-error.js.map |