Finn-Thorben Sell
b21f207b4f
add tests for error handling
2022-03-24 17:07:16 +01:00
Finn-Thorben Sell
5cd3a86106
implement example generators
...
Example generators are an addition to the 'Value' classes that allow the error handler to display
example values for the failed value.
For example if no django secret key is found to be defined in the environment, an example (secure)
value for such a secret key can now be generated on the fly and be suggested to the user
2022-03-24 14:25:41 +01:00
Finn-Thorben Sell
fd1b571594
fix flake8 warnings
2022-03-24 13:37:18 +01:00
Finn-Thorben Sell
12ffda4760
add support for adding reference links to values
...
Now Value classes accept a 'help_reference' keyword which will get printed when a
ValueRetrievalError or ValueProcessingError occurs
2022-03-24 11:05:20 +01:00
Finn-Thorben Sell
50ac28b667
add support for adding help_text to values
...
Now Value classes accept a 'help_text' keyword which will get printed when a
ValueRetrievalError or ValueProcessingError occurs
2022-03-24 11:03:34 +01:00
Finn-Thorben Sell
a3b720f31a
implement error accumulation
...
This way, multiple ConfigurationErrors are caught during setup, accumulated and printed all at once
2022-03-24 10:42:06 +01:00
Finn-Thorben Sell
7de2615441
transport additional information in error types
2022-03-24 10:13:49 +01:00
Finn-Thorben Sell
ece1521acd
put error handling and error definitions in one file named errors.py
2022-03-19 23:12:47 +01:00