Exception: LaunchpadMk2::CommunicationError
- Inherits:
-
LaunchpadError
- Object
- StandardError
- LaunchpadError
- LaunchpadMk2::CommunicationError
- Defined in:
- lib/launchpad_mk2/errors.rb
Overview
Error raised when anything fails while communicating with the launchpad.
Instance Attribute Summary collapse
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(e) ⇒ CommunicationError
constructor
A new instance of CommunicationError.
Constructor Details
#initialize(e) ⇒ CommunicationError
Returns a new instance of CommunicationError.
31 32 33 34 |
# File 'lib/launchpad_mk2/errors.rb', line 31 def initialize(e) super(e.portmidi_error) self.source = e end |
Instance Attribute Details
#source ⇒ Object
Returns the value of attribute source.
30 31 32 |
# File 'lib/launchpad_mk2/errors.rb', line 30 def source @source end |