Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5261

Re: Proper way to handle errors in a module

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bahamutzero8825@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'sorts': 0.04; 'subject:module': 0.04; 'section.': 0.07; 'exception.': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'received:192.168.1.6': 0.16; 'richardson': 0.16; 'thanks!': 0.18; 'header:In-Reply-To:1': 0.22; 'received:209.85.214.174': 0.23; 'received:mail- iw0-f174.google.com': 0.23; "wasn't": 0.25; 'pass': 0.27; 'class': 0.29; 'message-id:@gmail.com': 0.30; 'to:addr:python-list': 0.32; 'url:docs': 0.33; 'things': 0.33; 'received:192.168.1': 0.34; 'received:192': 0.34; 'there': 0.35; 'header:User-Agent:1': 0.35; 'received:192.168': 0.37; 'received:209.85': 0.37; 'url:python': 0.37; 'received:google.com': 0.38; 'url:org': 0.38; 'received:209.85.214': 0.39; 'to:addr:python.org': 0.39; 'could': 0.39; 'where': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'skip:h 20': 0.60; 'subject:handle': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=GfbCZgqFfoWdwZKrjZQA3spO7GuYWzhx33iaPEemC4I=; b=J4u2kbfMqXbTVdKLAF5fHyMWHSGSQtyPQjaXvb3NsJFvOwgKNwWmzermdflwmqnj/P 0N7xEgWmUL27+XZ81607NYDmZ31IRBKZ7ZgRlfnE3eQcBmCPQIyw04FOKeB68Pk2m63A UuNhoZ8+ZYJEfTXP3hDPVpg1BumtcCBj/vdWs=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=Vv3xeaKPrbgBnOONma5mhK43RL+8hfx8sDIFMEoYZRFsce5PTlUoiLbEa9Rv2tZiz2 n7BM3JJmPjOkFjm5wDb5QmnvvB53cli1mefD7skp9CpVQDSCBTpSRfvDigqmzN0sNq0w 5+F6Lo87IkTV5BrS5azxmjUIv32dolUvlPAxs=
Date Thu, 12 May 2011 15:35:16 -0500
From Andrew Berg <bahamutzero8825@gmail.com>
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 ThunderBrowse/3.3.5
MIME-Version 1.0
To python-list@python.org
Subject Re: Proper way to handle errors in a module
References <mailman.1415.1305134998.9059.python-list@python.org> <roy-FB35E1.14050911052011@news.panix.com> <4DCC318E.7020809@gmail.com> <4DCC3421.9070007@mrabarnett.plus.com> <4DCC3F37.3010904@gmail.com> <4DCC40FD.2030907@aim.com>
In-Reply-To <4DCC40FD.2030907@aim.com>
X-Enigmail-Version 1.1.1
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1495.1305232521.9059.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 82.94.164.166
X-Trace 1305232521 news.xs4all.nl 41102 [::ffff:82.94.164.166]:46053
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5261

Show key headers only | View raw


On 2011.05.12 03:20 PM, Corey Richardson wrote:
> class HelloError(Exception):
>     pass
>
> Of course, there are all sorts of other things you could do with your
> exception.
>
> http://docs.python.org/tutorial/errors.html#user-defined-exceptions
So that's where that info is. I wasn't looking in the tutorial section.
Thanks!

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Proper way to handle errors in a module Andrew Berg <bahamutzero8825@gmail.com> - 2011-05-11 12:29 -0500
  Re: Proper way to handle errors in a module Roy Smith <roy@panix.com> - 2011-05-11 14:05 -0400
    Re: Proper way to handle errors in a module Andrew Berg <bahamutzero8825@gmail.com> - 2011-05-12 14:14 -0500
    Re: Proper way to handle errors in a module MRAB <python@mrabarnett.plus.com> - 2011-05-12 20:25 +0100
    Re: Proper way to handle errors in a module Andrew Berg <bahamutzero8825@gmail.com> - 2011-05-12 15:12 -0500
    Re: Proper way to handle errors in a module Corey Richardson <kb1pkl@aim.com> - 2011-05-12 16:20 -0400
    Re: Proper way to handle errors in a module Tycho Andersen <tycho@tycho.ws> - 2011-05-12 15:26 -0500
      Re: Proper way to handle errors in a module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-13 00:43 +0000
    Re: Proper way to handle errors in a module MRAB <python@mrabarnett.plus.com> - 2011-05-12 21:26 +0100
    Re: Proper way to handle errors in a module Ethan Furman <ethan@stoneleaf.us> - 2011-05-12 13:40 -0700
    Re: Proper way to handle errors in a module Andrew Berg <bahamutzero8825@gmail.com> - 2011-05-12 15:35 -0500
      Re: Proper way to handle errors in a module Ben Finney <ben+python@benfinney.id.au> - 2011-05-13 10:56 +1000

csiph-web