Exception: Voicemeeter::Errors::CAPIErrors

Inherits:
VMRemoteErrors show all
Defined in:
lib/voicemeeter/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#funcObject

Returns the value of attribute func.



10
11
12
# File 'lib/voicemeeter/errors.rb', line 10

def func
  @func
end

#valueObject

Returns the value of attribute value.



10
11
12
# File 'lib/voicemeeter/errors.rb', line 10

def value
  @value
end

Instance Method Details

#messageObject



17
18
19
20
21
22
# File 'lib/voicemeeter/errors.rb', line 17

def message
  "
  When attempting to run function #{@func} the
  C API returned value #{@value}. See documentation for further info
  "
end