Skip to content

AckMessage

faststream.exceptions.AckMessage #

AckMessage(**extra_options)

Bases: HandlerException

Exception raised to acknowledge a message immediately.

This exception can be used to ack a message with additional options. To watch all allowed parameters, please take a look at your broker message.ack(**extra_options) method signature.

PARAMETER DESCRIPTION
extra_options

Additional parameters that will be passed to message.ack(**extra_options) method.

TYPE: Any DEFAULT: {}

Source code in faststream/exceptions.py
def __init__(self, **extra_options: Any):
    self.extra_options = extra_options
    super().__init__()

extra_options instance-attribute #

extra_options = extra_options