Source code for model_registry.exceptions

"""Exceptions for the model registry."""


[docs] class StoreError(Exception): """Storage related error."""
[docs] class MissingMetadata(Exception): """Not enough metadata to complete operation."""
[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."""