Exception: Launchpad::CommunicationError

Inherits:
LaunchpadError show all
Defined in:
lib/launchpad/errors.rb

Overview

Error raised when anything fails while communicating with the launchpad.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(e) ⇒ CommunicationError

Returns a new instance of CommunicationError



31
32
33
34
# File 'lib/launchpad/errors.rb', line 31

def initialize(e)
  super(e.portmidi_error)
  self.source = e
end

Instance Attribute Details

#sourceObject

Returns the value of attribute source



30
31
32
# File 'lib/launchpad/errors.rb', line 30

def source
  @source
end