reviewboard.actions.errors¶
Errors for actions app.
New in version 6.0.
- exception MissingActionRendererError[source]¶
Bases:
ActionErrorAn error indicating an action renderer could not be found.
- Version:
7.1
- exception DepthLimitExceededError(action_id: str, *, depth_limit: int)[source]¶
Bases:
ClassDeprecatedMixin,ValueErrorAn 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. ])
Deprecated since version 7.1: This class is no longer used. It will be removed in Review Board 9.
New in version 6.0.