Exception: Arf::Wire::FrameMismatchError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#expectedObject (readonly)

Returns the value of attribute expected.



8
9
10
# File 'lib/arf/wire/errors.rb', line 8

def expected
  @expected
end

#receivedObject (readonly)

Returns the value of attribute received.



8
9
10
# File 'lib/arf/wire/errors.rb', line 8

def received
  @received
end