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, reason)[source]¶ Used to signal validation errors for things such as token verification, user registration, etc.
Parameters:
-
exception
flaskbb.core.exceptions.
StopValidation
(reasons)[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.