Exception: Arf::Wire::UnknownFrameKindError
- Defined in:
- lib/arf/wire/errors.rb
Instance Attribute Summary collapse
-
#received_kind ⇒ Object
readonly
Returns the value of attribute received_kind.
Instance Method Summary collapse
-
#initialize(kind) ⇒ UnknownFrameKindError
constructor
A new instance of UnknownFrameKindError.
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_kind ⇒ Object (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 |