From 0203246582af0c85cea775ab10616695c4957a31 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 22 Sep 2021 11:17:59 -0700 Subject: [PATCH] Let ValidationError, RequestError have a common MegaError parent. --- src/mega/errors.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mega/errors.py b/src/mega/errors.py index 8aca88f..2ad320e 100644 --- a/src/mega/errors.py +++ b/src/mega/errors.py @@ -1,10 +1,13 @@ -class ValidationError(Exception): +class MegaError(Exception): + pass + +class ValidationError(MegaError): """ Error in validation stage """ pass -class RequestError(Exception): +class RequestError(MegaError): """ Error in API request """