Jump to >

reviewboard.reviews.errors

exception OwnershipError[source]

An error that occurs when a user does not own a review request.

exception PermissionError[source]

An error that occurs when a user does not have required permissions.

exception PublishError(message)[source]

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]

An error that occurs while attempting to close a review request.

exception ReopenError(message)[source]

An error that occurs while attempting to reopen a review request.

exception RevokeShipItError(message)[source]

An error that occurs while attempting to revoke a Ship It.

exception NotModifiedError[source]

An error that occurs when a review’s state is not modified.

exception DepthLimitExceededError(action_id, depth_limit)[source]

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(),
    ]),
])