From b38d6475ea82754d9d3b6e49a00decad04beb310 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 28 Feb 2023 11:57:50 +0100 Subject: Refactor: Remove error level Not useful enought just yet --- wrappers/python/eduvpn_common/error.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'wrappers/python/eduvpn_common/error.py') diff --git a/wrappers/python/eduvpn_common/error.py b/wrappers/python/eduvpn_common/error.py index 626d9a2..a642a70 100644 --- a/wrappers/python/eduvpn_common/error.py +++ b/wrappers/python/eduvpn_common/error.py @@ -1,23 +1,13 @@ from enum import Enum -class ErrorLevel(Enum): - """The error level enum""" - ERR_OTHER = 0 - ERR_INFO = 1 - ERR_WARNING = 2 - ERR_FATAL = 3 - - 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 - :param: level: ErrorLevel: The level of the error """ - def __init__(self, traceback: str, cause: str, level: ErrorLevel): + def __init__(self, traceback: str, cause: str): super(WrappedError, self).__init__(cause) self.traceback = traceback self.cause = cause - self.level = level -- cgit v1.2.3