"""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."""