Exception: Rtmidi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Rtmidi::Error
- Defined in:
- lib/rtmidi/error.rb
Direct Known Subclasses
DriverError, InvalidPortError, InvalidUseError, MemoryError, NoDevicesError
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message = "RtMidi error", type: :unspecified) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = "RtMidi error", type: :unspecified) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/rtmidi/error.rb', line 7 def initialize( = "RtMidi error", type: :unspecified) @type = type.to_sym super() end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/rtmidi/error.rb', line 5 def type @type end |