Exception: Nl::BlockingTransport::UnexpectedSequenceError

Inherits:
StandardError
  • Object
show all
Defined in:
nl/lib/nl/blocking_transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expected, actual) ⇒ UnexpectedSequenceError

Returns a new instance of UnexpectedSequenceError.



14
15
16
17
18
# File 'nl/lib/nl/blocking_transport.rb', line 14

def initialize(expected, actual)
  @expected = expected
  @actual = actual
  super("expected Netlink sequence and port ID #{expected.inspect}, got #{actual.inspect}")
end

Instance Attribute Details

#actual ⇒ Object (readonly)

Returns the value of attribute actual.



12
13
14
# File 'nl/lib/nl/blocking_transport.rb', line 12

def actual
  @actual
end

#expected ⇒ Object (readonly)

Returns the value of attribute expected.



12
13
14
# File 'nl/lib/nl/blocking_transport.rb', line 12

def expected
  @expected
end