Mongo.Error exception (mongodb-driver v0.7.3) View Source

Link to this section Summary

Functions

Return true if the error is retryable for read operations.

Return true if the error is retryable for writes operations.

Link to this section Types

Specs

t() :: %Mongo.Error{
  __exception__: term(),
  code: number(),
  error_labels: [String.t()] | nil,
  host: String.t(),
  message: String.t(),
  resumable: boolean(),
  retryable_reads: boolean(),
  retryable_writes: boolean()
}

Link to this section Functions

Link to this function

should_retry_read(error, cmd, opts)

View Source

Return true if the error is retryable for read operations.

Link to this function

should_retry_write(error, cmd, opts)

View Source

Return true if the error is retryable for writes operations.