blob: dc5771ba5bc4c822212a00a819cefc603562572e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
"""risc-v-gsp-rm-debugger error types. Keep them few and meaningful."""
from __future__ import annotations
class GreenEyeError(Exception):
"""Base class for all risc-v-gsp-rm-debugger errors."""
class RspError(GreenEyeError):
"""Base class for gdbstub RSP transport errors."""
class RspTimeout(RspError):
"""The stub did not answer within the timeout."""
class RspProtocolError(RspError):
"""The stub answered with a malformed packet or an error reply."""
class TargetError(GreenEyeError):
"""QEMU target lifecycle/configuration error."""
class SymbolNotFound(GreenEyeError):
"""A requested symbol is not in the symbol database."""
class StructError(GreenEyeError):
"""Structure schema/decode error."""
|