Source code for model_registry.exceptions
"""Exceptions for the model registry."""
[docs]
class StoreError(Exception):
"""Storage related error."""
[docs]
class UnsupportedType(StoreError):
"""Raised when an unsupported type is encountered."""
[docs]
class TypeNotFound(StoreError):
"""Raised when a type cannot be found."""
[docs]
class ServerError(StoreError):
"""Raised when the server returns a bad response."""
[docs]
class DuplicateError(StoreError):
"""Raised when the user tries to put an object with a conflicting property."""
[docs]
class ExperimentRunError(Exception):
"""Raised when an error occurs while working with an experiment run."""
[docs]
class ExperimentRunStoreError(StoreError):
"""Raised when an error occurs while storing an experiment run."""