mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 18:00:50 +00:00
12 lines
332 B
Python
12 lines
332 B
Python
class NVDAVMError(Exception):
|
|
"""Base NVDAVM error class"""
|
|
|
|
|
|
class NVDAVMCAPIError(NVDAVMError):
|
|
"""Exception raised when the NVDA 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}")
|