Module: Mongo::Error::ChangeStreamResumable

Included in:
SocketError, SocketTimeoutError
Defined in:
lib/mongo/error/change_stream_resumable.rb

Overview

A module signifying the error will always cause change stream to resume once.

Since:

  • 2.6.0

Instance Method Summary collapse

Instance Method Details

#change_stream_resumable?true, false

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

Examples:

Is the error resumable for the change stream?

error.change_stream_resumable?

Returns:

  • (true, false)

    Whether the error is resumable.

Since:

  • 2.6.0



32
33
34
# File 'lib/mongo/error/change_stream_resumable.rb', line 32

def change_stream_resumable?
  true
end