"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 match_error_1 = require("./match-error");
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 to " + expectedRegex + ".");
}
return RegexMatchError;
}(match_error_1.MatchError));
exports.RegexMatchError = RegexMatchError;
//# sourceMappingURL=regex-match-error.js.map |