Documentation: Document Django exceptions
|Reported by:||Owned by:||John Shimek|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
Using Django, many people are going to be writing web applications ( like salesforce.com for example) as opposed to mainly content/publishing sites ( example wapo and curse) and they will need to know the list of exceptions.
Please document exceptions django throws. Specially those thrown/raised by model methods.
I want to catch those exceptions and display appropriate custom message to my users (not the default 404).
From: Malcolm Tredinnick <malc...@…>
Date: Fri, 21 Mar 2008 05:44:56 +1100
Local: Thurs, Mar 20 2008 11:44 am
Subject: Re: Django Exception handling
Reply | Reply to author | Forward | Print | Individual message | Show original | Report this message | Find messages by this author
There's a list of most of Django's exceptions in
django/core/exceptions.py. In addition to that, you can get database
exceptions (DatabaseErrror and IntegrityError are two we push into the
Django namespace, but all errors from the DB API are possible), plus a
few internal Python exception types. Search for 'raise' in
django/db/models/base.py, for example. In fact, search for 'raise' in
django/db/models/ and subdirectories to see the full set of
Change History (15)
comment:3 Changed 9 years ago by
|Owner:||changed from nobody to John Shimek|
|Patch needs improvement:||set|