Coverage for src\zapy\base\exceptions.py: 79%
12 statements
« prev ^ index » next coverage.py v7.3.4, created at 2023-12-20 14:17 -0500
« prev ^ index » next coverage.py v7.3.4, created at 2023-12-20 14:17 -0500
1class HandledException(Exception):
2 pass
4class ZapyException(Exception):
5 namespace: str
6 identifier: str
7 context: dict
9 def __init__(self, *args, **kwargs):
10 super().__init__(*args, **kwargs)
11 self.context = dict()
13 @property
14 def error_type(self):
15 return f"{self.namespace}:{self.identifier}"