Exception: Mongo::Error::ClosedStream
- Inherits:
-
Mongo::Error
- Object
- StandardError
- Mongo::Error
- Mongo::Error::ClosedStream
- Defined in:
- lib/mongo/error/closed_stream.rb
Overview
Raised if the GridFS::Stream object is closed and an operation is attempted.
Constant Summary
Constants inherited from Mongo::Error
BAD_VALUE, CODE, ERR, ERRMSG, ERROR, UNKNOWN_ERROR, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS
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 |