Jump to >

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.

__init__(message)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception CloseError(message)[source]

Bases: exceptions.Exception

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

__init__(message)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception ReopenError(message)[source]

Bases: exceptions.Exception

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

__init__(message)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception RevokeShipItError(message)[source]

Bases: exceptions.Exception

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

__init__(message)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception NotModifiedError[source]

Bases: reviewboard.reviews.errors.PublishError

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

__init__()[source]

x.__init__(…) initializes x; see help(type(x)) for signature

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(),
    ]),
])
__init__(action_id, depth_limit)[source]

x.__init__(…) initializes x; see help(type(x)) for signature