123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::ClosedStream

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
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

Class Method Summary

Constructor Details

.newClosedStream

Create the new exception.

Examples:

Create the new exception.

Mongo::Error::ClosedStream.new

Since:

  • 2.1.0

[ GitHub ]

  
# 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