diff options
Diffstat (limited to 'python/ldtplib/ldtplibutils.py')
-rw-r--r-- | python/ldtplib/ldtplibutils.py | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/python/ldtplib/ldtplibutils.py b/python/ldtplib/ldtplibutils.py index ac523af..75f5815 100644 --- a/python/ldtplib/ldtplibutils.py +++ b/python/ldtplib/ldtplibutils.py @@ -571,23 +571,14 @@ class XmlTags: NOTIFICATION_ELEMENT = "<NOTIFICATION>" NOTIFICATION_END_ELEMENT = "</NOTIFICATION>" -class error (Exception): - def __init__ (self, value): - self.value = value - def __str__ (self): - return repr (self.value) +class Error (Exception): + pass -class LdtpExecutionError (Exception): - def __init__ (self, value): - self.value = value - def __str__ (self): - return repr (self.value) +class LdtpExecutionError (Error): + pass -class ConnectionLost (Exception): - def __init__ (self, value): - self.value = value - def __str__ (self): - return repr (self.value) +class ConnectionLost (Error): + pass def connect2LdtpExecutionEngine (): _display = os.getenv ('DISPLAY') |