MCPcopy
hub / github.com/mongodb/node-mongodb-native / hasErrorLabel

Method hasErrorLabel

src/error.ts:193–195  ·  view source on GitHub ↗

* Checks the error to see if it has an error label * * @param label - The error label to check for * @returns returns true if the error has the provided error label

(label: string)

Source from the content-addressed store, hash-verified

191 * @returns returns true if the error has the provided error label
192 */
193 hasErrorLabel(label: string): boolean {
194 return this.errorLabelSet.has(label);
195 }
196
197 addErrorLabel(label: string): void {
198 this.errorLabelSet.add(label);

Callers 12

needsRetryableWriteLabelFunction · 0.45
isRetryableWriteErrorFunction · 0.45
isResumableErrorFunction · 0.45
withTransactionMethod · 0.45
updateServersFunction · 0.45
handleErrorMethod · 0.45
decorateCommandErrorMethod · 0.45
canRetryFunction · 0.45

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected