From d2f7d9a227eaf2c19bec177bd9034f1d55fe6e6f Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 2 May 2014 18:13:13 +0200 Subject: [PATCH] Some doc fixes for exceptions --- vdirsyncer/exceptions.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/vdirsyncer/exceptions.py b/vdirsyncer/exceptions.py index e13da8e..eda0410 100644 --- a/vdirsyncer/exceptions.py +++ b/vdirsyncer/exceptions.py @@ -9,12 +9,10 @@ class Error(Exception): - '''Baseclass for all errors.''' class PreconditionFailed(Error): - ''' - The item doesn't exist although it should - The item exists although it shouldn't @@ -26,36 +24,37 @@ class PreconditionFailed(Error): class NotFoundError(PreconditionFailed): - '''Item not found''' class AlreadyExistingError(PreconditionFailed): - '''Item already exists''' class WrongEtagError(PreconditionFailed): - '''Wrong etag''' class StorageError(Error): - '''Internal or initialization errors with storage.''' class SyncError(Error): - pass + '''Errors related to synchronization.''' class SyncConflict(SyncError): - pass + ''' + Two items changed since the last sync, they now have different contents and + no conflict resolution method was given. + ''' class StorageEmpty(SyncError): - '''One storage unexpectedly got completely empty between two - synchronizations. The first argument is the empty storage.''' + ''' + One storage unexpectedly got completely empty between two synchronizations. + The first argument is the empty storage. + ''' @property def empty_storage(self):