Skip to content

error

mlte/store/error.py

Error definitions for store implementations.

ErrorAlreadyExists

Bases: RuntimeError

An error raised when a new entity is requested but it already exists.

Source code in mlte/store/error.py
 8
 9
10
11
class ErrorAlreadyExists(RuntimeError):
    """An error raised when a new entity is requested but it already exists."""

    pass

ErrorNotFound

Bases: RuntimeError

An error raised when the requested entity is not found.

Source code in mlte/store/error.py
14
15
16
17
class ErrorNotFound(RuntimeError):
    """An error raised when the requested entity is not found."""

    pass

ForbiddenError

Bases: RuntimeError

User without permissions for the operation.

Source code in mlte/store/error.py
32
33
34
35
class ForbiddenError(RuntimeError):
    """User without permissions for the operation."""

    pass

InternalError

Bases: RuntimeError

A logic error in our implementation.

Source code in mlte/store/error.py
20
21
22
23
class InternalError(RuntimeError):
    """A logic error in our implementation."""

    pass

UnauthenticatedError

Bases: RuntimeError

No authentication for operation that requires it.

Source code in mlte/store/error.py
26
27
28
29
class UnauthenticatedError(RuntimeError):
    """No authentication for operation that requires it."""

    pass