Exception: Arf::Wire::FrameMismatchError
- Defined in:
- lib/arf/wire/errors.rb
Instance Attribute Summary collapse
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#received ⇒ Object
readonly
Returns the value of attribute received.
Instance Method Summary collapse
-
#initialize(expected, received) ⇒ FrameMismatchError
constructor
A new instance of FrameMismatchError.
Constructor Details
#initialize(expected, received) ⇒ FrameMismatchError
Returns a new instance of FrameMismatchError.
10 11 12 13 14 |
# File 'lib/arf/wire/errors.rb', line 10 def initialize(expected, received) @expected = expected @received = received super("Frame type mismatch: Expected #{expected}, got #{received}") end |
Instance Attribute Details
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
8 9 10 |
# File 'lib/arf/wire/errors.rb', line 8 def expected @expected end |
#received ⇒ Object (readonly)
Returns the value of attribute received.
8 9 10 |
# File 'lib/arf/wire/errors.rb', line 8 def received @received end |