Exception: LegoEv3::InvalidChannelException

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

Instance Method Summary collapse

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