Exceptions¶
Custom exceptions and warnings
bigbuild.exceptions.BadMetadata |
A custom exception to raise when the page configuration file has malformed metadata. |
bigbuild.exceptions.MissingMetadataWarning |
|
bigbuild.exceptions.MissingRecommendedMetadataWarning |
A custom warning that will be raised when a published page is missing recommended metadata values. |
-
class
bigbuild.exceptions.
BadMetadata
(*args, **kwargs)¶ Bases:
exceptions.Exception
A custom exception to raise when the page configuration file has malformed metadata.
-
class
bigbuild.exceptions.
MissingRecommendedMetadataWarning
(page)¶ Bases:
bigbuild.exceptions.BaseWarning
A custom warning that will be raised when a published page is missing recommended metadata values.
For instance, things like a headline and description are not required to publish a page, but you’re likely to have bugs with how your page appears on social media if you lack them.
-
get_context_data
()¶ Returns the data to be passed into the message template as context.
-