Exceptions
APi documentation of exceptions
- exception notifiers.exceptions.NotifierException(*args, **kwargs)[source]
Base notifier exception. Catch this to catch all of
notifierserrors
- exception notifiers.exceptions.BadArguments(validation_error: str, *args, **kwargs)[source]
Raised on schema data validation issues
- Parameters:
validation_error – The validation error message
args – Exception arguments
kwargs – Exception kwargs.
errorsmay hold a list of all validation errors, each a dict withloc,msgandtypekeys
- exception notifiers.exceptions.SchemaError(schema_error: str, *args, **kwargs)[source]
Raised on schema issues, relevant probably when creating or changing a provider schema.
Not raised by notifiers itself: invalid pydantic schemas fail when the model is defined or first used. Available so code that catches it keeps working.
- Parameters:
schema_error – The schema error that was raised
args – Exception arguments
kwargs – Exception kwargs