Exception: Voicemeeter::Errors::CAPIErrors
- Inherits:
-
VMRemoteErrors
- Object
- StandardError
- VMRemoteErrors
- Voicemeeter::Errors::CAPIErrors
- Defined in:
- lib/voicemeeter/errors.rb
Instance Attribute Summary collapse
-
#func ⇒ Object
Returns the value of attribute func.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, func) ⇒ CAPIErrors
constructor
A new instance of CAPIErrors.
- #message ⇒ Object
Constructor Details
#initialize(value, func) ⇒ CAPIErrors
Returns a new instance of CAPIErrors.
12 13 14 15 |
# File 'lib/voicemeeter/errors.rb', line 12 def initialize(value, func) self.value = value self.func = func end |
Instance Attribute Details
#func ⇒ Object
Returns the value of attribute func.
10 11 12 |
# File 'lib/voicemeeter/errors.rb', line 10 def func @func end |
#value ⇒ Object
Returns the value of attribute value.
10 11 12 |
# File 'lib/voicemeeter/errors.rb', line 10 def value @value end |
Instance Method Details
#message ⇒ Object
17 18 19 20 21 22 |
# File 'lib/voicemeeter/errors.rb', line 17 def " When attempting to run function #{@func} the C API returned value #{@value}. See documentation for further info " end |