Plugin error with code, module, and message.
| 6 | |
| 7 | |
| 8 | class PluginError(Exception): |
| 9 | """Plugin error with code, module, and message.""" |
| 10 | |
| 11 | def __init__(self, code: int, module: str, msg: str): |
| 12 | super().__init__(msg) |
| 13 | self.code = code |
| 14 | self.module = module |
| 15 | self.msg = msg |
| 16 | |
| 17 | def __str__(self) -> str: |
| 18 | return f"\nModule: {self.module}\nCode: {self.code}\nMessage: {self.msg}" |
| 19 | |
| 20 | |
| 21 | # Error factory functions (matching Go error.go) |
no outgoing calls
no test coverage detected