reviewboard.actions.errors¶
Errors for actions app.
New in version 6.0.
- exception DepthLimitExceededError(action_id: str, *, depth_limit: int)[source]¶
Bases:
ValueError
An error that occurs when the maximum depth limit is exceeded.
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:
ActionHook(self, actions=[ DepthZeroMenuAction(), DepthOneFirstItemAction(), DepthOneMenuAction(), DepthTwoMenuAction(), # This depth is acceptable. DepthThreeTooDeepAction(), # This action is too deep. ])
New in version 6.0.