MCPcopy
hub / github.com/treeverse/dvc / __init__

Method __init__

dvc/exceptions.py:245–257  ·  view source on GitHub ↗
(self, target_infos: list[str], result: dict)

Source from the content-addressed store, hash-verified

243
244class CheckoutError(DvcException):
245 def __init__(self, target_infos: list[str], result: dict):
246 from dvc.utils import error_link
247
248 self.target_infos = target_infos
249 self.result = result
250 targets = [str(t) for t in target_infos]
251 m = (
252 "Checkout failed for following targets:\n{}\nIs your "
253 "cache up to date?\n{}".format(
254 "\n".join(targets), error_link("missing-files")
255 )
256 )
257 super().__init__(m)
258
259
260class CollectCacheError(DvcException):

Callers

nothing calls this directly

Calls 4

error_linkFunction · 0.90
joinMethod · 0.80
formatMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected