clearml/clearml/errors.py
2024-02-12 14:53:43 +02:00

18 lines
599 B
Python

class UsageError(RuntimeError):
"""An exception raised for illegal usage of clearml objects"""
pass
class ArtifactUriDeleteError(ValueError):
def __init__(self, artifact, uri, remaining_uris):
super(ArtifactUriDeleteError, self).__init__("Failed deleting artifact {}: file {}".format(artifact, uri))
self.artifact = artifact
self.uri = uri
self._remaining_uris = remaining_uris
@property
def remaining_uris(self):
"""Remaining URIs to delete. Deletion of these URIs was aborted due to the error."""
return self._remaining_uris