summaryrefslogtreecommitdiffstats
path: root/debug/risc-v-gsp-rm-vm/greeneye/errors.py
blob: fab5874d68cc9d8521209d5728076841c9ad957e (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
"""green-eye error types. Keep them few and meaningful."""
from __future__ import annotations


class GreenEyeError(Exception):
    """Base class for all green-eye 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."""