forked from orbit-oss/flask
slimmed down error handling intro
This commit is contained in:
parent
d4ad47af62
commit
4437eb7ceb
2 changed files with 2 additions and 7 deletions
|
|
@ -35,12 +35,7 @@ Error handlers
|
|||
|
||||
.. versionadded:: 1.0
|
||||
|
||||
Some errors are unavoidable because not only you make them. Users might
|
||||
enter a wrong password or do something different in a way that you just
|
||||
cannot allow. Or a third party service that your site relies on is
|
||||
unreachable while an user tries to do something with it.
|
||||
|
||||
In those cases you might want to show error pages to the user in response.
|
||||
You might want to show error pages to the user when an error occurs.
|
||||
This can be done by registering error handlers.
|
||||
|
||||
Error handlers are normal :ref:`views` but instead of being registered for
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ See :ref:`error-handlers` for specifics.
|
|||
and therefore was replaced with the intended behavior of registering
|
||||
handlers only using exception classes and HTTP error codes.
|
||||
|
||||
Trying to register a handler on an instance now raises :exc:`ValueError`
|
||||
Trying to register a handler on an instance now raises :exc:`ValueError`.
|
||||
|
||||
.. _upgrading-to-010:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue