mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-13 15:28:27 +01:00
24 lines
683 B
Python
24 lines
683 B
Python
from dvc.exceptions import DvcException
|
|
|
|
|
|
class ProcessNotTerminatedError(DvcException):
|
|
def __init__(self, name):
|
|
super().__init__(f"Managed process '{name}' has not been terminated.")
|
|
|
|
|
|
class ProcessNotFoundError(DvcException):
|
|
def __init__(self, name):
|
|
super().__init__(f"Managed process '{name}' does not exist.")
|
|
|
|
|
|
class TimeoutExpired(DvcException):
|
|
def __init__(self, cmd, timeout):
|
|
super().__init__(f"'{cmd}' did not complete before timeout '{timeout}'")
|
|
self.cmd = cmd
|
|
self.timeout = timeout
|
|
|
|
|
|
class UnsupportedSignalError(DvcException):
|
|
def __init__(self, sig):
|
|
super().__init__(f"Unsupported signal: {sig}")
|