Source code for chariots.errors
"""module with all the custom errors of Chariots"""
[docs]class VersionError(TypeError):
"""error when their is a non-validated version trying to be executed"""
[docs] @staticmethod
def handle():
"""handles the error to return the proper error message through HTTP"""
return 'trying to load/execute an outdated version, retrain', 419
[docs]class BackendError(ImportError):
"""error to be raised in the client when their is a pipeline execution fail"""