Exception: Rex::Proto::Http::WebSocket::ConnectionError
- Inherits:
-
WebSocketError
- Object
- StandardError
- WebSocketError
- Rex::Proto::Http::WebSocket::ConnectionError
- Defined in:
- lib/rex/proto/http/web_socket.rb
Instance Attribute Summary collapse
-
#http_response ⇒ Object
Returns the value of attribute http_response.
-
#message ⇒ Object
(also: #to_s)
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(msg: 'The WebSocket connection failed', http_response: nil) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
Constructor Details
#initialize(msg: 'The WebSocket connection failed', http_response: nil) ⇒ ConnectionError
Returns a new instance of ConnectionError.
11 12 13 14 |
# File 'lib/rex/proto/http/web_socket.rb', line 11 def initialize(msg: 'The WebSocket connection failed', http_response: nil) @message = msg @http_response = http_response end |
Instance Attribute Details
#http_response ⇒ Object
Returns the value of attribute http_response.
16 17 18 |
# File 'lib/rex/proto/http/web_socket.rb', line 16 def http_response @http_response end |
#message ⇒ Object Also known as: to_s
Returns the value of attribute message.
16 17 18 |
# File 'lib/rex/proto/http/web_socket.rb', line 16 def @message end |