class Mongo::Error::ClosedStream
Raised if the Grid::FSBucket::Stream
object is closed and an operation is attempted.
@since 2.1.0
Public Class Methods
new()
click to toggle source
Create the new exception.
@example Create the new exception.
Mongo::Error::ClosedStream.new
@since 2.1.0
Calls superclass method
Mongo::Error::new
# 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