Source code for distrax.exceptions.exceptions

[docs]class NotEnoughMemoryError(Exception): """Error for when more memory is requested than is available.""" def __init__(self, message: str): """Call the base class constructor with the parameters it needs. Args: message: Message to display """ super().__init__(message)
[docs]class DeviceCreationError(Exception): """When the creation of the Block device fails.""" def __init__(self, message: str): """Call the base class constructor with the parameters it needs. Args: message: Message to display """ super().__init__(message)
[docs]class ClusterExistsError(Exception): """When a Cluster Already Exists.""" def __init__(self, message: str): """Call the base class constructor with the parameters it needs. Args: message: Message to display """ super().__init__(message)
[docs]class DaemonNotStartedError(Exception): """When a Daemon Fails to Start.""" def __init__(self, message: str): """Call the base class constructor with the parameters it needs. Args: message: Message to display """ super().__init__(message)
[docs]class MDSNotStartedError(Exception): """When the Metadata Server Fails to Start.""" def __init__(self, message: str): """Call the base class constructor with the parameters it needs. Args: message: Message to display """ super().__init__(message)
[docs]class MountingFilesystemError(Exception): """When Mounting the Filesystem Errors.""" def __init__(self, message: str): """Call the base class constructor with the parameters it needs. Args: message: Message to display """ super().__init__(message)
[docs]class InterfaceDoesNotExistError(Exception): """When the interface for the storage system to communicate over is not found.""" def __init__(self, message: str): """Call the base class constructor with the parameters it needs. Args: message: Message to display """ super().__init__(message)