Coverage for /Users/rik/github/cgse/libs/cgse-common/src/egse/exceptions.py: 100%
20 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-15 11:57 +0200
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-15 11:57 +0200
1class CGSEException(Exception):
2 """The base exception for all errors and warnings in the Common-EGSE."""
4 pass
7class Error(CGSEException):
8 """The base class for all Common-EGSE Errors."""
10 pass
13class Warning(CGSEException):
14 """The base class for all Common-EGSE Warnings."""
16 pass
19class FileIsEmptyError(Error):
20 """Raised when a file is empty and that is unexpected."""
22 pass
25class InvalidOperationError(Error):
26 """
27 Raised when a certain operation is not valid in the given state,
28 circumstances or environment.
29 """
31 pass
34class InvalidInputError(Error):
35 """Exception raised when the input is invalid after editing."""
37 pass
40class DeviceNotFoundError(Error):
41 """Raised when a device could not be located, or loaded."""
43 pass
46class InternalStateError(Error):
47 """Raised when an object encounters an internal state inconsistency."""
49 pass
52class InternalError(Error):
53 """Raised when an internal inconsistency occurred in a function, method or class."""
55 pass
58class Abort(RuntimeError):
59 """Internal Exception to signal a process to abort."""
62class InitialisationError(Error):
63 """Raised when an initialisation failed."""