rename exceptions + lint fixes

This commit is contained in:
2026-03-19 03:51:36 +00:00
parent 8e8e3ce8a5
commit 8b025206b1
4 changed files with 26 additions and 17 deletions

View File

@@ -1,9 +1,9 @@
class VMError(Exception):
"""Base voicemeeterlib exception class"""
class VMAddonError(Exception):
"""Base voicemeeter add-on exception class"""
class VMCAPIError(VMError):
"""Exception raised when the C-API returns an error code"""
class VMAddonCAPIError(VMAddonError):
"""Exception raised when the Voicemeeter C-API returns an error code"""
def __init__(self, fn_name, code):
self.fn_name = fn_name