Exception: LegoEv3::InvalidChannelException
- Inherits:
-
Exception
- Object
- Exception
- LegoEv3::InvalidChannelException
- Defined in:
- lib/exceptions.rb
Instance Method Summary collapse
-
#initialize(channel) ⇒ InvalidChannelException
constructor
A new instance of InvalidChannelException.
Constructor Details
#initialize(channel) ⇒ InvalidChannelException
Returns a new instance of InvalidChannelException.
29 30 31 32 33 34 |
# File 'lib/exceptions.rb', line 29 def initialize(channel) super( "The channel #{channel} is not supported in the mode :control_alt of " + "the infrared sensor. The only supported channel is 1." ) end |