Skip to content

Exceptions

ContentTypeInvalid

Bases: Exception

Raised when the content type is invalid.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
4
5
6
7
8
9
class ContentTypeInvalid(Exception):
    """Raised when the content type is invalid.

    Attributes:
        message (str): Optional message describing the error.
    """

ContentTypeMissing

Bases: Exception

Raised when the content type is missing.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
12
13
14
15
16
17
class ContentTypeMissing(Exception):
    """Raised when the content type is missing.

    Attributes:
        message (str): Optional message describing the error.
    """

EngineIgnitionFailure

Bases: Exception

Raised when the engine fails to ignite.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
20
21
22
23
24
25
class EngineIgnitionFailure(Exception):
    """Raised when the engine fails to ignite.

    Attributes:
        message (str): Optional message describing the error.
    """

InferenceModelNotFound

Bases: Exception

Raised when the inference model is not found.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
28
29
30
31
32
33
class InferenceModelNotFound(Exception):
    """Raised when the inference model is not found.

    Attributes:
        message (str): Optional message describing the error.
    """

InvalidEnvironmentVariableError

Bases: Exception

Raised when an environment variable is invalid.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
36
37
38
39
40
41
class InvalidEnvironmentVariableError(Exception):
    """Raised when an environment variable is invalid.

    Attributes:
        message (str): Optional message describing the error.
    """

InvalidMaskDecodeArgument

Bases: Exception

Raised when an invalid argument is provided for mask decoding.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
44
45
46
47
48
49
class InvalidMaskDecodeArgument(Exception):
    """Raised when an invalid argument is provided for mask decoding.

    Attributes:
        message (str): Optional message describing the error.
    """

InvalidNumpyInput

Bases: InputImageLoadError

Raised when the input is an invalid NumPy array.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
94
95
96
97
98
99
class InvalidNumpyInput(InputImageLoadError):
    """Raised when the input is an invalid NumPy array.

    Attributes:
        message (str): Optional message describing the error.
    """

MissingApiKeyError

Bases: Exception

Raised when the API key is missing.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
52
53
54
55
56
57
class MissingApiKeyError(Exception):
    """Raised when the API key is missing.

    Attributes:
        message (str): Optional message describing the error.
    """

MissingServiceSecretError

Bases: Exception

Raised when the service secret is missing.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
60
61
62
63
64
65
class MissingServiceSecretError(Exception):
    """Raised when the service secret is missing.

    Attributes:
        message (str): Optional message describing the error.
    """

OnnxProviderNotAvailable

Bases: Exception

Raised when the ONNX provider is not available.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
68
69
70
71
72
73
class OnnxProviderNotAvailable(Exception):
    """Raised when the ONNX provider is not available.

    Attributes:
        message (str): Optional message describing the error.
    """

WorkspaceLoadError

Bases: Exception

Raised when there is an error loading the workspace.

Attributes:

Name Type Description
message str

Optional message describing the error.

Source code in inference/core/exceptions.py
76
77
78
79
80
81
class WorkspaceLoadError(Exception):
    """Raised when there is an error loading the workspace.

    Attributes:
        message (str): Optional message describing the error.
    """