123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::ServerTimeoutError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, TimeoutError, Error
Instance Chain:
Inherits: Mongo::Error::TimeoutError
Defined in: lib/mongo/error/server_timeout_error.rb

Overview

Raised when the server returns error code 50.

Since:

  • 2.0.0

Constant Summary

SdamErrorDetection - Included

NODE_RECOVERING_CODES, NODE_SHUTTING_DOWN_CODES, NOT_MASTER_CODES

ReadWriteRetryable - Included

RETRY_MESSAGES, WRITE_RETRY_ERRORS, WRITE_RETRY_MESSAGES

::OperationFailure::Family - Included

CHANGE_STREAM_RESUME_ERRORS, CHANGE_STREAM_RESUME_MESSAGES

Instance Attribute Summary

::OperationFailure::Family - Included

#change_stream_resumable?

Can the change stream on which this error occurred be resumed, provided the operation that triggered this error was a getMore?

#code, #code_name, #details, #document,
#max_time_ms_expired?

Whether the error is MaxTimeMSExpired.

#result, #server_message, #write_concern_error?, #write_concern_error_code, #write_concern_error_code_name,
#write_concern_error_document

Returns the write concern error document as it was reported by the server, if any.

#wtimeout?

Whether the error is a write concern timeout.

#change_stream_resumable_code?

ReadWriteRetryable - Included

#retryable?

Whether the error is a retryable error according to the legacy read retry logic.

#write_retryable?

Whether the error is a retryable error according to the modern retryable reads and retryable writes specifications.

#write_retryable_code?

SdamErrorDetection - Included

#node_recovering?

Whether the error is a "node is recovering" error, or one of its variants.

#node_shutting_down?

Whether the error is a "node is shutting down" type error.

#not_master?

Whether the error is a "not master" error, or one of its variants.

Instance Method Summary

::OperationFailure::Family - Included

#connection_description,
#initialize

Create the operation failure.

#append_details

Append the details to the message.

#retrieve_details

Retrieve the details from a document.