From 4437eb7ceb7f139df8d14fae904c22e86557d053 Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Sat, 11 Apr 2015 18:01:22 +0200 Subject: [PATCH] slimmed down error handling intro --- docs/errorhandling.rst | 7 +------ docs/upgrading.rst | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/errorhandling.rst b/docs/errorhandling.rst index 4bbf73c3..b010571c 100644 --- a/docs/errorhandling.rst +++ b/docs/errorhandling.rst @@ -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 diff --git a/docs/upgrading.rst b/docs/upgrading.rst index 82a52206..b0460b38 100644 --- a/docs/upgrading.rst +++ b/docs/upgrading.rst @@ -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: