Exception: Voicemeeter::Errors::VMCAPIError
- Defined in:
- lib/voicemeeter.rb
Overview
Raised when the C-API returns error codes
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#fn_name ⇒ Object
readonly
Returns the value of attribute fn_name.
Instance Method Summary collapse
-
#initialize(fn_name, code) ⇒ VMCAPIError
constructor
create a new VMCAPIError with given C-API function name and error code.
Constructor Details
#initialize(fn_name, code) ⇒ VMCAPIError
create a new VMCAPIError with given C-API function name and error code
49 50 51 52 53 |
# File 'lib/voicemeeter.rb', line 49 def initialize(fn_name, code) @fn_name = fn_name @code = code super("#{fn_name} returned #{code}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
46 47 48 |
# File 'lib/voicemeeter.rb', line 46 def code @code end |
#fn_name ⇒ Object (readonly)
Returns the value of attribute fn_name.
46 47 48 |
# File 'lib/voicemeeter.rb', line 46 def fn_name @fn_name end |