Exception: RfcWebSocket::WebSocketError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RfcWebSocket::WebSocketError
- Defined in:
- lib/rfc-ws-client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(text, code = 1002) ⇒ WebSocketError
constructor
A new instance of WebSocketError.
Constructor Details
#initialize(text, code = 1002) ⇒ WebSocketError
Returns a new instance of WebSocketError.
14 15 16 17 |
# File 'lib/rfc-ws-client.rb', line 14 def initialize(text, code = 1002) super(text) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
12 13 14 |
# File 'lib/rfc-ws-client.rb', line 12 def code @code end |