Exception: ModBus::Errors::ResponseMismatch

Inherits:
ModBusException show all
Defined in:
lib/rmodbus/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject (readonly)

Returns the value of attribute request.



57
58
59
# File 'lib/rmodbus/errors.rb', line 57

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



57
58
59
# File 'lib/rmodbus/errors.rb', line 57

def response
  @response
end