Update changelog for 0.4.0
[osm/N2VC.git] / juju / errors.py
index 9295267..71a3215 100644 (file)
@@ -1,7 +1,14 @@
+class JujuError(Exception):
+    pass
 
-class JujuAPIError(Exception):
+
+class JujuAPIError(JujuError):
     def __init__(self, result):
         self.message = result['error']
         self.response = result['response']
         self.request_id = result['request-id']
         super().__init__(self.message)
+
+
+class JujuConnectionError(ConnectionError, JujuError):
+    pass