Module: Mongo::Error::ChangeStreamResumable

Included in:
Mongo::Error, ConnectionPerished, PoolClearedError, PoolPausedError, 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



35
36
37
# File 'lib/mongo/error/change_stream_resumable.rb', line 35

def change_stream_resumable?
  true
end