mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 23:09:55 +01:00
14 lines
335 B
Python
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)
|