We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bee7ab commit 49babb2Copy full SHA for 49babb2
src/error.ts
@@ -178,6 +178,26 @@ export class MongoDriverError extends MongoError {
178
}
179
180
181
+/**
182
+ * An error generated when the driver encounters unexpected input
183
+ * or reaches an unexpected/invalid internal state
184
+ *
185
+ * @privateRemarks
186
+ * Should **never** be directly instantiated.
187
188
+ * @public
189
+ * @category Error
190
+ */
191
+export class MongoRuntimeError extends MongoDriverError {
192
+ protected constructor(message: string) {
193
+ super(message);
194
+ }
195
+
196
+ get name(): string {
197
+ return 'MongoRuntimeError';
198
199
+}
200
201
/** @internal */
202
const kBeforeHandshake = Symbol('beforeHandshake');
203
export function isNetworkErrorBeforeHandshake(err: MongoNetworkError): boolean {
0 commit comments