Exception: ModBus::Errors::IllegalFunction
- Inherits:
-
ModBusException
- Object
- RuntimeError
- ModBusException
- ModBus::Errors::IllegalFunction
- Defined in:
- lib/rmodbus/errors.rb
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ IllegalFunction
constructor
A new instance of IllegalFunction.
Constructor Details
#initialize(msg = nil) ⇒ IllegalFunction
Returns a new instance of IllegalFunction.
12 13 14 |
# File 'lib/rmodbus/errors.rb', line 12 def initialize(msg = nil) super(msg || "The function code received in the query is not an allowable action for the server") end |