_exceptions.py
changeset 8609 112a04c0473d
parent 8556 bbe0d6985e59
parent 8602 d066ba3bb07d
child 8695 358d8bed9626
equal deleted inserted replaced
8596:bd4f5052a532 8609:112a04c0473d
   101                 return ' '.join(self.args)
   101                 return ' '.join(self.args)
   102             return self.msg
   102             return self.msg
   103         except Exception, ex:
   103         except Exception, ex:
   104             return str(ex)
   104             return str(ex)
   105 
   105 
       
   106 class Forbidden(SecurityError):
       
   107     """raised when a user tries to perform a forbidden action
       
   108     """
       
   109 
   106 # source exceptions ###########################################################
   110 # source exceptions ###########################################################
   107 
   111 
   108 class EidNotInSource(SourceException):
   112 class EidNotInSource(SourceException):
   109     """trying to access an object with a particular eid from a particular
   113     """trying to access an object with a particular eid from a particular
   110     source has failed
   114     source has failed