summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common/error.py
blob: 3d84331177d40ad21a1d4bff2bf204231f3a2635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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