diff options
author | Robert Brewer <fumanchu@aminus.org> | 2005-11-14 18:56:15 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2005-11-14 18:56:15 +0000 |
commit | 30bcd6e2b97e94be70c1e224fa76abf86d3439e4 (patch) | |
tree | e1659977ccb93304b1b749738dfdb9acc4d91674 /docs | |
parent | ecf804d5397080daa5ef26a91100b03fd3bdbd41 (diff) | |
download | cherrypy-git-30bcd6e2b97e94be70c1e224fa76abf86d3439e4.tar.gz |
Docs: explanatory diagram for error-handling flow.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/book/xml/errorhandling.xml | 12 | ||||
-rw-r--r-- | docs/book/xml/errors.gif | bin | 0 -> 5437 bytes |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/book/xml/errorhandling.xml b/docs/book/xml/errorhandling.xml index f4bb7675..183b0c51 100644 --- a/docs/book/xml/errorhandling.xml +++ b/docs/book/xml/errorhandling.xml @@ -2,6 +2,15 @@ <section xmlns:db="http://docbook.org/docbook-ng" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:id="globaloverviewcherrypy"> <title>Exceptions and Error Handling</title> + <para>As you read this section, refer to the following diagram to understand the flow of + execution:</para> + <figure> + <mediaobject> + <imageobject> + <imagedata fileref="errors.gif" /> + </imageobject> + </mediaobject> + </figure> <section> <title>Unanticipated exceptions</title> <para>When an unhandled exception is raised inside CherryPy, three actions occur (in @@ -14,6 +23,9 @@ <para>a <code>_cpOnError</code> method is called</para> </listitem> <listitem> + <para><code>response.finalize</code> is called</para> + </listitem> + <listitem> <para><code>afterErrorResponse</code> filter methods are called</para> </listitem> </itemizedlist> diff --git a/docs/book/xml/errors.gif b/docs/book/xml/errors.gif Binary files differnew file mode 100644 index 00000000..a272790a --- /dev/null +++ b/docs/book/xml/errors.gif |