Exception: Webtube::BadlyEncodedText

Inherits:
ProtocolError show all
Defined in:
lib/webtube.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 message =
        "UTF-8 encoding error in a text-type message",
    data: nil
  super message
  @data = data
  return
end

Instance Attribute Details

#dataObject (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_codeObject



983
984
985
# File 'lib/webtube.rb', line 983

def websocket_close_status_code
  return 1007
end