Exception: Portmidi::DeviceError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errnum) ⇒ DeviceError

Returns a new instance of DeviceError.



4
5
6
# File 'lib/portmidi/exceptions.rb', line 4

def initialize(errnum)
  @portmidi_error = PM_Map.Pm_GetErrorText(errnum)
end

Instance Attribute Details

#portmidi_errorObject (readonly)

Returns the value of attribute portmidi_error.



3
4
5
# File 'lib/portmidi/exceptions.rb', line 3

def portmidi_error
  @portmidi_error
end