Files
dvc/dvc/exceptions.py
T
2018-04-05 21:31:20 +03:00

14 lines
335 B
Python

import traceback
class DvcException(Exception):
def __init__(self, msg, cause=None):
self.cause = cause
self.case_tb = None
if cause:
try:
self.cause_tb = traceback.format_exc()
except Exception:
pass
super(DvcException, self).__init__(msg)