We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a22679 commit fb02eacCopy full SHA for fb02eac
packages/mongodb-memory-server-core/src/util/errors.ts
@@ -131,3 +131,17 @@ export class ReplsetCountLowError extends Error {
131
super(`ReplSet Count needs to be 1 or higher! (specified count: "${count}")`);
132
}
133
134
+
135
+export class ParseArchiveRegexError extends Error {
136
+ constructor(public key: string) {
137
+ super(`Expected "${key}" to be found in regex groups`);
138
+ }
139
+}
140
141
+export class NoRegexMatchError extends Error {
142
+ constructor(public name: string, public extra?: string) {
143
+ super();
144
+ const addExtra = !!extra ? `(${extra})` : '';
145
+ this.message = `Expected "${name}" to have Regex Matches${addExtra}`;
146
147
0 commit comments