Skip to content

ContextError

faststream.exceptions.ContextError #

ContextError(context, field)

Bases: FastStreamException, KeyError

Raises if context exception occurred.

Source code in faststream/exceptions.py
def __init__(self, context: Any, field: str) -> None:
    self.context = context
    self.field = field

context instance-attribute #

context = context

field instance-attribute #

field = field