blob: a642a7014d12ced2f8c4387989e94f9d775445e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from enum import Enum
class WrappedError(Exception):
"""An exception returned by the Go library
:param: traceback: str: The traceback of the error including newlines
:param: cause: str: The cause of the error as a message
"""
def __init__(self, traceback: str, cause: str):
super(WrappedError, self).__init__(cause)
self.traceback = traceback
self.cause = cause
|