reviewboard.reviews.errors¶
-
exception
OwnershipError
[source]¶ Bases:
exceptions.ValueError
An error that occurs when a user does not own a review request.
-
exception
PermissionError
[source]¶ Bases:
exceptions.Exception
An error that occurs when a user does not have required permissions.
-
exception
PublishError
(message)[source]¶ Bases:
exceptions.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:
exceptions.Exception
An error that occurs while attempting to close a review request.
-
exception
ReopenError
(message)[source]¶ Bases:
exceptions.Exception
An error that occurs while attempting to reopen a review request.
-
exception
RevokeShipItError
(message)[source]¶ Bases:
exceptions.Exception
An error that occurs while attempting to revoke a Ship It.
-
exception
NotModifiedError
[source]¶ Bases:
reviewboard.reviews.errors.PublishError
An error that occurs when a review’s state is not modified.
-
exception
DepthLimitExceededError
(action_id, depth_limit)[source]¶ Bases:
exceptions.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(), ]), ])