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.
109 110 111 |
# File 'lib/rex/exceptions.rb', line 109 def initialize(stream) @stream = stream end |
Instance Method Details
#stream ⇒ Object
113 114 115 |
# File 'lib/rex/exceptions.rb', line 113 def stream @stream end |
#to_s ⇒ Object
117 118 119 |
# File 'lib/rex/exceptions.rb', line 117 def to_s "Stream #{@stream} is closed." end |