Skip to content

ValidationError

faststream.exceptions.ValidationError #

ValidationError(fields=())

Bases: FastStreamException, ValueError

Exception to raise at startup hook validation error.

Source code in faststream/exceptions.py
def __init__(self, fields: Iterable[str] = ()) -> None:
    self.fields = fields

fields instance-attribute #

fields = fields