Exception: Mongo::Error::ClosedStream

Inherits:
Mongo::Error
  • Object
show all
Defined in:
lib/mongo/error/closed_stream.rb

Overview

Raised if the Grid::FSBucket::Stream object is closed and an operation is attempted.

Since:

  • 2.1.0

Constant Summary

Constants inherited from Mongo::Error

BAD_VALUE, CODE, CURSOR_NOT_FOUND, ERR, ERRMSG, ERROR, UNKNOWN_ERROR, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS

Instance Method Summary collapse

Constructor Details

#initializeClosedStream

Create the new exception.

Examples:

Create the new exception.

Mongo::Error::ClosedStream.new

Since:

  • 2.1.0



29
30
31
# File 'lib/mongo/error/closed_stream.rb', line 29

def initialize
  super("The stream is closed and cannot be written to or read from.")
end