Exception: Rex::StreamClosedError
- Inherits:
-
IOError
- Object
- IOError
- Rex::StreamClosedError
- Includes:
- Exception
- Defined in:
- lib/rex/exceptions.rb
Overview
This error is thrown when a stream is detected as being closed.
Instance Method Summary collapse
-
#initialize(stream) ⇒ StreamClosedError
constructor
A new instance of StreamClosedError.
- #stream ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(stream) ⇒ StreamClosedError
Returns a new instance of StreamClosedError.
110 111 112 |
# File 'lib/rex/exceptions.rb', line 110 def initialize(stream) @stream = stream end |
Instance Method Details
#stream ⇒ Object
114 115 116 |
# File 'lib/rex/exceptions.rb', line 114 def stream @stream end |
#to_s ⇒ Object
118 119 120 |
# File 'lib/rex/exceptions.rb', line 118 def to_s "Stream #{@stream} is closed." end |