_exceptions.py
changeset 10446 1e6655cff5ab
parent 10320 facbb38c4c1a
child 10703 3cb87b61b067
equal deleted inserted replaced
10445:f1773842077d 10446:1e6655cff5ab
   100              DeprecationWarning)
   100              DeprecationWarning)
   101         # the first argument, etype, is never used and was never garanteed anyway
   101         # the first argument, etype, is never used and was never garanteed anyway
   102         return None, self.rtypes
   102         return None, self.rtypes
   103 
   103 
   104 
   104 
       
   105 class ViolatedConstraint(RepositoryError):
       
   106     def __init__(self, cnx, cstrname):
       
   107         self.cnx = cnx
       
   108         self.cstrname = cstrname
       
   109 
       
   110 
   105 # security exceptions #########################################################
   111 # security exceptions #########################################################
   106 
   112 
   107 class Unauthorized(SecurityError):
   113 class Unauthorized(SecurityError):
   108     """raised when a user tries to perform an action without sufficient
   114     """raised when a user tries to perform an action without sufficient
   109     credentials
   115     credentials