Core Exceptions¶
These are exceptions that aren’t specific to any one part of FlaskBB and are used ubiquitously.
- exception flaskbb.core.exceptions.ValidationError(attribute: str, reason: list[tuple[str, str]])[source]¶
Used to signal validation errors for things such as token verification, user registration, etc.
- exception flaskbb.core.exceptions.StopValidation(reasons: list[tuple[str, str]])[source]¶
Raised from validation handlers to signal that validation should end immediately and no further processing should be done.
Can also be used to communicate all errors raised during a validation run.
- Parameters:
reasons – A sequence of (attribute, reason) pairs explaining why the object is invalid.