nvda-addon-voicemeeter/addon/globalPlugins/voicemeeter/error.py
onyx-and-iris f24ef8442e move vm_path and dll loading into cdll.py
define binds explicitly in Binds.

bump to version 0.3
2023-09-24 17:25:43 +01:00

12 lines
328 B
Python

class VMError(Exception):
"""Base voicemeeterlib exception class."""
class VMCAPIError(VMError):
"""Exception raised when the C-API returns an error code"""
def __init__(self, fn_name, code):
self.fn_name = fn_name
self.code = code
super().__init__(f"{self.fn_name} returned {self.code}")