mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-03 10:25:51 +00:00
25 lines
586 B
Python
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
|