Class: Mongo::Error::ClosedStream
- Inherits:
-
Error
- Object
- Error
- Mongo::Error::ClosedStream
- Defined in:
- lib/mongo/error/closed_stream.rb
Overview
Raised if the Grid::FSBucket::Stream object is closed and an operation is attempted.
Instance Method Summary collapse
-
#initialize ⇒ ClosedStream
constructor
Create the new exception.
Constructor Details
#initialize ⇒ ClosedStream
Create the new exception.
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 |