Google Groups Home
Help | Sign in
Message from discussion Even better better error handling
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
jpellerin@gmail.com  
View profile
 More options Dec 24 2005, 10:50 am
From: "jpelle...@gmail.com" <jpelle...@gmail.com>
Date: Sat, 24 Dec 2005 15:50:22 -0000
Local: Sat, Dec 24 2005 10:50 am
Subject: Re: Even better better error handling
I think this is a great idea:

> # Something evil happend to our DB
> @error_handler(sql_error, "isinstance(errors, SQLObjectIntegrityError)")
> # Default
> @error_handler(submit_error)

The power to dispatch your errors is there if you want it -- but if it
makes your head spin, you don't have to use it. That's really good.

JP


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google