Exception: Webtube::BadlyEncodedText
- Inherits:
-
ProtocolError
- Object
- StandardError
- ProtocolError
- Webtube::BadlyEncodedText
- Defined in:
- lib/webtube.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(message = "UTF-8 encoding error in a text-type message", data: nil) ⇒ BadlyEncodedText
constructor
A new instance of BadlyEncodedText.
- #websocket_close_status_code ⇒ Object
Constructor Details
#initialize(message = "UTF-8 encoding error in a text-type message", data: nil) ⇒ BadlyEncodedText
975 976 977 978 979 980 981 |
# File 'lib/webtube.rb', line 975 def initialize = "UTF-8 encoding error in a text-type message", data: nil super @data = data return end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
973 974 975 |
# File 'lib/webtube.rb', line 973 def data @data end |
Instance Method Details
#websocket_close_status_code ⇒ Object
983 984 985 |
# File 'lib/webtube.rb', line 983 def websocket_close_status_code return 1007 end |