Exception: ModBus::Errors::ResponseMismatch
- Inherits:
-
ModBusException
- Object
- RuntimeError
- ModBusException
- ModBus::Errors::ResponseMismatch
- Defined in:
- lib/rmodbus/errors.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg, request, response) ⇒ ResponseMismatch
constructor
A new instance of ResponseMismatch.
Constructor Details
#initialize(msg, request, response) ⇒ ResponseMismatch
Returns a new instance of ResponseMismatch.
59 60 61 62 63 |
# File 'lib/rmodbus/errors.rb', line 59 def initialize(msg, request, response) super(msg) @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
57 58 59 |
# File 'lib/rmodbus/errors.rb', line 57 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
57 58 59 |
# File 'lib/rmodbus/errors.rb', line 57 def response @response end |