devo_ml.modelmanager.error#

A set of exceptions raised by ML Model Manager.

exception ModelManagerError(code=None, msg=None)[source]#

Any error of ML Model Manager.

__init__(code=None, msg=None)[source]#

Creates a ModelManagerError.

Parameters:
classmethod from_code(code, msg=None)[source]#

Creates an error associates with a code.

Parameters:
  • code (int) – The code of the error

  • msg (Optional[str]) – Any message describing the error

Return type:

ModelManagerError

Returns:

An exception associate with the code

__str__()[source]#

String representation of the error.

Return type:

str

Returns:

The string representation of the error

exception TokenError[source]#

Any error with an access token.

__init__()[source]#

Creates a TokenError.

exception ModelNotFound(model)[source]#

Indicates that a model does not exist in the system.

__init__(model)[source]#

Creates a ModelNotFound.

Parameters:

model (str) – The missing model name

exception ModelAlreadyExists(model)[source]#

Indicates that a model already exists in the system.

__init__(model)[source]#

Creates a ModelAlreadyExists.

Parameters:

model (str) – The duplicate model name

exception ProfileError(msg)[source]#

Any profile error.

__init__(msg)[source]#

Creates a ProfileError.

Parameters:

msg (str) – Any message describing the error

exception ProfileValueRequired(option)[source]#

Indicates an error with a mandatory value of a profile

__init__(option)[source]#

Creates a ProfileValueRequired.

Parameters:

option (str) – The option causing the error