secop/errors: add comments

Change-Id: If03094acd29a8fd437ad9b82a8b332cc5ad8366b
Reviewed-on: https://forge.frm2.tum.de/review/17270
Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de>
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
Enrico Faulhaber 2018-02-08 08:52:57 +01:00
parent b9324876b3
commit c146f477aa

View File

@ -22,11 +22,13 @@
# ***************************************************************************** # *****************************************************************************
"""error class for our little framework""" """error class for our little framework"""
# base class
class SECoPServerError(Exception): 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): class ConfigError(SECoPServerError):
pass pass
@ -35,9 +37,9 @@ class ProgrammingError(SECoPServerError):
pass pass
# for remote operation # to be exported for remote operation
class SECoPError(SECoPServerError): class SECoPError(SECoPServerError):
errorclass = 'InternalError' pass
class NoSuchModuleError(SECoPError): class NoSuchModuleError(SECoPError):