Exception: LegoEv3::InvalidModeException

Inherits:
Exception
  • Object
show all
Defined in:
lib/exceptions.rb

Instance Method Summary collapse

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