[docs]classCLEError(Exception):""" Base class for errors raised by CLE. """pass
[docs]classCLEUnknownFormatError(CLEError):""" Error raised when CLE encounters an unknown executable file format. """pass
[docs]classCLEFileNotFoundError(CLEError):""" Error raised when a file does not exist. """pass
[docs]classCLEInvalidBinaryError(CLEError):""" Error raised when an executable file is invalid or corrupted. """pass
[docs]classCLEOperationError(CLEError):""" Error raised when a problem is encountered in the process of loading an executable. """pass
[docs]classCLECompatibilityError(CLEError):""" Error raised when loading an executable that is not currently supported by CLE. """pass
[docs]classCLEMemoryError(CLEError):""" Error raised when performing memory operations on unmapped addresses """pass
classCLEInvalidFileFormatError(CLEError):""" Error raised when loading a file with an invalid format. """classCLEInvalidEncryptionError(CLEError):""" Error raised when loading an encrypted file (e.g., CART) with an incorrect encryption key. """def__init__(self,backend=None,enckey_argname=None):self.backend=backendself.enckey_argname=enckey_argname