From c146f477aac5f0f46c445a3fe73362dccdc07ea7 Mon Sep 17 00:00:00 2001 From: Enrico Faulhaber Date: Thu, 8 Feb 2018 08:52:57 +0100 Subject: [PATCH] secop/errors: add comments Change-Id: If03094acd29a8fd437ad9b82a8b332cc5ad8366b Reviewed-on: https://forge.frm2.tum.de/review/17270 Tested-by: JenkinsCodeReview Reviewed-by: Enrico Faulhaber --- secop/errors.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/secop/errors.py b/secop/errors.py index c1c4d81..7eb2cb6 100644 --- a/secop/errors.py +++ b/secop/errors.py @@ -22,11 +22,13 @@ # ***************************************************************************** """error class for our little framework""" - +# base class class SECoPServerError(Exception): - pass + errorclass = 'InternalError' +# those errors should never be seen remotely! +# just in case they are, these are flagged as InternalError class ConfigError(SECoPServerError): pass @@ -35,9 +37,9 @@ class ProgrammingError(SECoPServerError): pass -# for remote operation +# to be exported for remote operation class SECoPError(SECoPServerError): - errorclass = 'InternalError' + pass class NoSuchModuleError(SECoPError):