Get rid of confusing err=True option to invirt.remctl.remctl.
[invirt/packages/invirt-base.git] / python / invirt / common.py
index a85d955..eb2e90e 100644 (file)
@@ -75,7 +75,9 @@ class InvalidInput(Exception):
 
 class CodeError(Exception):
     """Exception for internal errors or bad faith input."""
-    pass
+    def __init__(self, message, code=None):
+        Exception.__init__(self, message)
+        self.code = code
 
 #
 # Tests.