From 01aeb8335a5307aa928fabbd13bf122da895e3f3 Mon Sep 17 00:00:00 2001 From: Quentin POLLET Date: Mon, 9 Mar 2020 22:37:31 +0100 Subject: [PATCH] Sort Exceptions --- pyicloud/exceptions.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pyicloud/exceptions.py b/pyicloud/exceptions.py index c26f23f..c6a8dd5 100644 --- a/pyicloud/exceptions.py +++ b/pyicloud/exceptions.py @@ -3,10 +3,7 @@ class PyiCloudException(Exception): pass -class PyiCloudNoDevicesException(PyiCloudException): - pass - - +# API class PyiCloudAPIResponseException(PyiCloudException): def __init__(self, reason, code, retry=False): self.reason = reason @@ -20,6 +17,11 @@ class PyiCloudAPIResponseException(PyiCloudException): super(PyiCloudAPIResponseException, self).__init__(message) +class PyiCloudServiceNotActivatedException(PyiCloudAPIResponseException): + pass + + +# Login class PyiCloudFailedLoginException(PyiCloudException): pass @@ -34,5 +36,6 @@ class PyiCloudNoStoredPasswordAvailableException(PyiCloudException): pass -class PyiCloudServiceNotActivatedException(PyiCloudAPIResponseException): +# Webservice specific +class PyiCloudNoDevicesException(PyiCloudException): pass