mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-16 07:10:47 +00:00
23 lines
372 B
Ruby
23 lines
372 B
Ruby
require_relative "util"
|
|
|
|
module Voicemeeter
|
|
module Errors
|
|
class VMError < StandardError
|
|
end
|
|
|
|
class VMCAPIError < VMError
|
|
attr_reader :fn_name, :code
|
|
|
|
def initialize(fn_name, code)
|
|
@fn_name = fn_name
|
|
@code = code
|
|
super(message)
|
|
end
|
|
|
|
def message
|
|
"#{fn_name} returned #{code}"
|
|
end
|
|
end
|
|
end
|
|
end
|