~dobey/u1db/python-rpath

« back to all changes in this revision

Viewing changes to u1db/errors.py

  • Committer: Tarmac
  • Author(s): Eric Casteleijn
  • Date: 2012-10-09 17:25:33 UTC
  • mfrom: (420.2.3 abort-sync-with-self)
  • Revision ID: tarmac-20121009172533-ijjpxzomsh0s5jvs
Attempting a sync between two databases with the same replica uid will raise an error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    wire_description = "invalid generation"
84
84
 
85
85
 
 
86
class InvalidReplicaUID(U1DBError):
 
87
    """Attempting to sync a database with itself."""
 
88
 
 
89
    wire_description = "invalid replica uid"
 
90
 
 
91
 
86
92
class ConflictedDoc(U1DBError):
87
93
    """The document is conflicted, you must call resolve before put()"""
88
94