vdirsyncer/vdirsyncer/exceptions.py
2014-02-28 14:44:07 +01:00

25 lines
586 B
Python

# -*- coding: utf-8 -*-
'''
vdirsyncer.exceptions
~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer
:license: MIT, see LICENSE for more details.
'''
class Error(Exception):
'''Baseclass for all errors.'''
pass
class NotFoundError(Error):
'''The item does not exist (anymore).'''
pass
class AlreadyExistingError(Error):
'''The item exists although it shouldn't, possible race condition.'''
pass
class WrongEtagError(Error):
'''The given etag doesn't match the etag from the storage, possible race
condition.'''
pass