mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
32 lines
831 B
Python
32 lines
831 B
Python
from dvc.exceptions import DvcException
|
|
|
|
|
|
class DependencyDoesNotExistError(DvcException):
|
|
def __init__(self, path):
|
|
msg = "dependency '{}' does not exist".format(path)
|
|
super().__init__(msg)
|
|
|
|
|
|
class DependencyIsNotFileOrDirError(DvcException):
|
|
def __init__(self, path):
|
|
msg = "dependency '{}' is not a file or directory".format(path)
|
|
super().__init__(msg)
|
|
|
|
|
|
class DependencyIsStageFileError(DvcException):
|
|
def __init__(self, path):
|
|
super().__init__(
|
|
"Stage file '{}' cannot be a dependency.".format(path)
|
|
)
|
|
|
|
|
|
class DependencyBase(object):
|
|
IS_DEPENDENCY = True
|
|
|
|
DoesNotExistError = DependencyDoesNotExistError
|
|
IsNotFileOrDirError = DependencyIsNotFileOrDirError
|
|
IsStageFileError = DependencyIsStageFileError
|
|
|
|
def update(self):
|
|
pass
|