more vnc debug

This commit is contained in:
Maxim Devaev
2022-07-17 09:25:23 +03:00
parent 398b0ad762
commit 4661695f86
3 changed files with 81 additions and 69 deletions

View File

@@ -20,10 +20,14 @@
# ========================================================================== #
from .... import tools
# =====
class RfbError(Exception):
pass
class RfbConnectionError(RfbError):
def __init__(self, err: Exception) -> None:
super().__init__(type(err).__name__)
def __init__(self, msg: str, err: Exception) -> None:
super().__init__(f"{msg}: {tools.efmt(err)}")