reviewboard.reviews.errors¶
- exception OwnershipError[source]¶
Bases:
ValueError
An error that occurs when a user does not own a review request.
- exception PermissionError[source]¶
Bases:
Exception
An error that occurs when a user does not have required permissions.
- exception PublishError(message)[source]¶
Bases:
Exception
An error that occurs when attempting to publish.
The model triggering this error may be a review request, review, or reply.
- exception CloseError(message)[source]¶
Bases:
Exception
An error that occurs while attempting to close a review request.
- exception ReopenError(message)[source]¶
Bases:
Exception
An error that occurs while attempting to reopen a review request.
- exception RevokeShipItError(message)[source]¶
Bases:
Exception
An error that occurs while attempting to revoke a Ship It.
- exception NotModifiedError[source]¶
Bases:
PublishError
An error that occurs when a review’s state is not modified.
- __annotations__ = {}¶
- exception DepthLimitExceededError(action_id, depth_limit)[source]¶
Bases:
ValueError
An error that occurs when the maximum depth limit is exceeded.
Review request actions cannot be arbitrarily nested. For example, if the depth limit is 2, then this error would be triggered if an extension tried to add a menu action as follows:
BaseReviewRequestActionHook(self, actions=[ DepthZeroMenuAction([ DepthOneFirstItemAction(), DepthOneMenuAction([ DepthTwoMenuAction([ # This depth is acceptable. DepthThreeTooDeepAction(), # This action is too deep. ]), ]), DepthOneLastItemAction(), ]), ])