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
1
2
3
4
5
6
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
 9
10
11
12
13
14
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
17
18
19
20
21
22
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
25
26
27
28
29
30
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
33
34
35
36
37
38
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
41
42
43
44
45
46
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
91
92
93
94
95
96
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
49
50
51
52
53
54
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
57
58
59
60
61
62
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
65
66
67
68
69
70
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
73
74
75
76
77
78
class WorkspaceLoadError(Exception):
    """Raised when there is an error loading the workspace.

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