Exception: Arf::Wire::UnknownFrameKindError

Inherits:
WireError
  • Object
show all
Defined in:
lib/arf/wire/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind) ⇒ UnknownFrameKindError

Returns a new instance of UnknownFrameKindError.



74
75
76
77
78
79
80
81
# File 'lib/arf/wire/errors.rb', line 74

def initialize(kind)
  @received_kind = kind
  if kind.is_a? Symbol
    super("Unknown frame kind 0x#{received_kind}")
  else
    super("Unknown frame kind 0x#{received_kind.to_s(16)}")
  end
end

Instance Attribute Details

#received_kindObject (readonly)

Returns the value of attribute received_kind.



72
73
74
# File 'lib/arf/wire/errors.rb', line 72

def received_kind
  @received_kind
end