Exception: ModBus::Errors::ResponseMismatch
- Inherits:
-
ModBusException
- Object
- StandardError
- 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.
35 36 37 38 39 |
# File 'lib/rmodbus/errors.rb', line 35 def initialize(msg, request, response) super(msg) @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
34 35 36 |
# File 'lib/rmodbus/errors.rb', line 34 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
34 35 36 |
# File 'lib/rmodbus/errors.rb', line 34 def response @response end |