_exceptions.py
branchstable
changeset 8602 d066ba3bb07d
parent 8265 9747ab9230ad
child 8609 112a04c0473d
equal deleted inserted replaced
8601:1a6000ff2080 8602:d066ba3bb07d
   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