Exception: Portmidi::DeviceError
- Inherits:
-
StandardError
- Object
- StandardError
- Portmidi::DeviceError
- Defined in:
- lib/portmidi/exceptions.rb
Instance Attribute Summary collapse
-
#portmidi_error ⇒ Object
readonly
Returns the value of attribute portmidi_error.
Instance Method Summary collapse
-
#initialize(errnum) ⇒ DeviceError
constructor
A new instance of DeviceError.
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_error ⇒ Object (readonly)
Returns the value of attribute portmidi_error.
3 4 5 |
# File 'lib/portmidi/exceptions.rb', line 3 def portmidi_error @portmidi_error end |