Exception: LegoEv3::InvalidModeException
- Inherits:
-
Exception
- Object
- Exception
- LegoEv3::InvalidModeException
- Defined in:
- lib/exceptions.rb
Instance Method Summary collapse
-
#initialize(type, sub_type, mode, valid_modes) ⇒ InvalidModeException
constructor
A new instance of InvalidModeException.
Constructor Details
#initialize(type, sub_type, mode, valid_modes) ⇒ InvalidModeException
Returns a new instance of InvalidModeException.
21 22 23 24 25 |
# File 'lib/exceptions.rb', line 21 def initialize(type, sub_type, mode, valid_modes) super( "The mode #{mode} is not valid on the #{type} of type #{sub_type}. " + "Supported modes are: #{valid_modes}") end |