Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 57ba5d7f75
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (28 sloc) 1.157 kb
module Launchpad
# Generic launchpad error.
class LaunchpadError < StandardError; end
# Error raised when the MIDI device specified doesn't exist.
class NoSuchDeviceError < LaunchpadError; end
# Error raised when the MIDI device specified is busy.
class DeviceBusyError < LaunchpadError; end
# Error raised when an input has been requested, although
# launchpad has been initialized without input.
class NoInputAllowedError < LaunchpadError; end
# Error raised when an output has been requested, although
# launchpad has been initialized without output.
class NoOutputAllowedError < LaunchpadError; end
# Error raised when <tt>x/y</tt> coordinates outside of the grid
# or none were specified.
class NoValidGridCoordinatesError < LaunchpadError; end
# Error raised when wrong brightness was specified.
class NoValidBrightnessError < LaunchpadError; end
# Error raised when anything fails while communicating
# with the launchpad.
class CommunicationError < LaunchpadError
attr_accessor :source
def initialize(e)
super(e.portmidi_error)
self.source = e
end
end
end
Jump to Line
Something went wrong with that request. Please try again.