mlflow.exceptions

exception mlflow.exceptions.MlflowException(message, error_code=1, **kwargs)

Generic exception thrown when an MLflow operation fails

exception mlflow.exceptions.ExecutionException(message, error_code=1, **kwargs)[source]

Bases: mlflow.exceptions.MlflowException

Exception thrown when executing a project fails

exception mlflow.exceptions.InvalidUrlException(message, error_code=1, **kwargs)[source]

Bases: mlflow.exceptions.MlflowException

Exception thrown when a http request fails to send due to an invalid URL

exception mlflow.exceptions.MissingConfigException(message, error_code=1, **kwargs)[source]

Bases: mlflow.exceptions.MlflowException

Exception thrown when expected configuration file/directory not found

exception mlflow.exceptions.MlflowTraceDataCorrupted(request_id: Optional[str] = None, artifact_path: Optional[str] = None)[source]

Bases: mlflow.exceptions.MlflowTraceDataException

Exception thrown when trace data is corrupted

exception mlflow.exceptions.MlflowTraceDataException(error_code: str, request_id: Optional[str] = None, artifact_path: Optional[str] = None)[source]

Bases: mlflow.exceptions.MlflowTracingException

Exception thrown for trace data related error

exception mlflow.exceptions.MlflowTraceDataNotFound(request_id: Optional[str] = None, artifact_path: Optional[str] = None)[source]

Bases: mlflow.exceptions.MlflowTraceDataException

Exception thrown when trace data is not found

exception mlflow.exceptions.MlflowTracingException(message, error_code=1)[source]

Bases: mlflow.exceptions.MlflowException

Exception thrown from tracing logic

Tracing logic should not block the main execution flow in general, hence this exception is used to distinguish tracing related errors and handle them properly.

exception mlflow.exceptions.RestException(json)[source]

Bases: mlflow.exceptions.MlflowException

Exception thrown on non 200-level responses from the REST API

mlflow.exceptions.get_error_code(http_status)[source]