diff --git a/aioadb/adbexceptions.py b/aioadb/adbexceptions.py new file mode 100644 index 0000000..27d0f9c --- /dev/null +++ b/aioadb/adbexceptions.py @@ -0,0 +1,18 @@ +class BaseException(Exception): + '''Base exception class''' + pass + + +class SyncError(BaseException): + '''Base sync exception class''' + pass + + +class StartSyncError(SyncError): + '''Raised when couldn't start sync''' + pass + + +class PushSyncError(SyncError): + '''Raised when couldn't complete push sync''' + pass \ No newline at end of file diff --git a/aioadb/adbsync.py b/aioadb/adbsync.py index 7ab8270..27e8638 100644 --- a/aioadb/adbsync.py +++ b/aioadb/adbsync.py @@ -6,7 +6,7 @@ from collections import namedtuple from functools import partial -from app.asyncdb.exceptions import PushSyncError, StartSyncError +from .adbexceptions import PushSyncError, StartSyncError FileInfo = namedtuple("FileInfo", ['mode', 'size', 'mtime', 'name'])