_exceptions.py
branchstable
changeset 6211 e9d125fd1465
parent 5426 0d4853a6e5ee
child 6347 ef47a2100c66
equal deleted inserted replaced
6210:d36104de8459 6211:e9d125fd1465
    78     msg = 'No source supports %r entity\'s type'
    78     msg = 'No source supports %r entity\'s type'
    79 
    79 
    80 class MultiSourcesError(RepositoryError, InternalError):
    80 class MultiSourcesError(RepositoryError, InternalError):
    81     """usually due to bad multisources configuration or rql query"""
    81     """usually due to bad multisources configuration or rql query"""
    82 
    82 
       
    83 class UniqueTogetherError(RepositoryError):
       
    84     """raised when a unique_together constraint caused an IntegrityError"""
    83 
    85 
    84 # security exceptions #########################################################
    86 # security exceptions #########################################################
    85 
    87 
    86 class Unauthorized(SecurityError):
    88 class Unauthorized(SecurityError):
    87     """raised when a user tries to perform an action without sufficient
    89     """raised when a user tries to perform an action without sufficient