Exception: Nl::BlockingTransport::UnexpectedSequenceError
- Inherits:
-
StandardError
- Object
- StandardError
- Nl::BlockingTransport::UnexpectedSequenceError
- Defined in:
- nl/lib/nl/blocking_transport.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
-
#initialize(expected, actual) ⇒ UnexpectedSequenceError
constructor
A new instance of UnexpectedSequenceError.
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 |