Skip to content

Exceptions

HarvestingError

Bases: Exception

Exception raised for errors related to harvesting tasks.

Source code in nucleus/sdk/exceptions.py
4
5
6
7
8
9
class HarvestingError(Exception):
    """Exception raised for errors related to harvesting tasks."""

    def __init__(self, message: str, *args: Any, **kwargs: Any):
        self.message = f'SDK :: Harvesting -> {message}'
        super().__init__(self.message, *args, **kwargs)

ProcessingError

Bases: Exception

Exception raised for errors related to processing tasks.

Source code in nucleus/sdk/exceptions.py
12
13
14
15
16
17
class ProcessingError(Exception):
    """Exception raised for errors related to processing tasks."""

    def __init__(self, message: str, *args: Any, **kwargs: Any):
        self.message = f'SDK :: Processing -> {message}'
        super().__init__(self.message, *args, **kwargs)

StorageError

Bases: Exception

Exception raised for errors related to storage tasks.

Source code in nucleus/sdk/exceptions.py
20
21
22
23
24
25
class StorageError(Exception):
    """Exception raised for errors related to storage tasks."""

    def __init__(self, message: str, *args: Any, **kwargs: Any):
        self.message = f'SDK :: Storage -> {message}'
        super().__init__(self.message, *args, **kwargs)

ModelManagerError

Bases: HarvestingError

Raised when a model fails to persist or interact with the underlying cache. ModelManagerError error is a subclass from HarvestingError.

Source code in nucleus/sdk/exceptions.py
28
29
30
31
32
33
class ModelManagerError(HarvestingError):
    """Raised when a model fails to persist or interact with the underlying cache.
    ModelManagerError error is a subclass from HarvestingError.
    """

    ...

ModelValidationError

Bases: HarvestingError

Raised when a model fails during schema validation. ModelValidationError error is a subclass from HarvestingError.

Source code in nucleus/sdk/exceptions.py
36
37
38
39
40
41
class ModelValidationError(HarvestingError):
    """Raised when a model fails during schema validation.
    ModelValidationError error is a subclass from HarvestingError.
    """

    ...

StorageServiceError

Bases: StorageError

Raised when something fails when trying to operate on the edge services. StorageServiceError error is a subclass from StorageError.

Source code in nucleus/sdk/exceptions.py
44
45
46
47
48
49
class StorageServiceError(StorageError):
    """Raised when something fails when trying to operate on the edge services.
    StorageServiceError error is a subclass from StorageError.
    """

    ...

ProcessingEngineError

Bases: ProcessingError

Raised when something fail during media processing. ProcessingEngineError error is a subclass from ProcessingError.

Source code in nucleus/sdk/exceptions.py
52
53
54
55
56
57
class ProcessingEngineError(ProcessingError):
    """Raised when something fail during media processing.
    ProcessingEngineError error is a subclass from ProcessingError.
    """

    ...

FFProbeError

Bases: ProcessingError

Raised when something fail during ffprobe call. FFProbeError error is a subclass from ProcessingError.

Source code in nucleus/sdk/exceptions.py
60
61
62
63
64
65
class FFProbeError(ProcessingError):
    """Raised when something fail during ffprobe call.
    FFProbeError error is a subclass from ProcessingError.
    """

    ...