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


Groups > comp.lang.python > #53411

Newbie: use of built-in exceptions

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Rui Maciel <rui.maciel@gmail.com>
Newsgroups comp.lang.python
Subject Newbie: use of built-in exceptions
Date Sun, 01 Sep 2013 12:17:26 +0100
Organization A noiseless patient Spider
Lines 5
Message-ID <kvv7o7$1ek$1@dont-email.me> (permalink)
Reply-To rui.maciel@gmail.com
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
Injection-Date Sun, 1 Sep 2013 11:17:27 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="2c6b298e869016deda41c4c8dadee138"; logging-data="1492"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/B4fFPzpGVQIjyovI4FJzIDp0VDN3PsU0="
User-Agent KNode/4.8.5
Cancel-Lock sha1:i1Z0iOhp5sewPKAnWMz6ZaQZ/RY=
Xref csiph.com comp.lang.python:53411

Show key headers only | View raw


Are there any guidelines on the use (and abuse) of Python's built-in exceptions, telling where 
it's ok to raise them and where it's preferable to define custom exceptions instead?  


Thanks in advance,
Rui Maciel

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


Thread

Newbie: use of built-in exceptions Rui Maciel <rui.maciel@gmail.com> - 2013-09-01 12:17 +0100
  Re: Newbie: use of built-in exceptions Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-09-01 13:26 +0200
    Re: Newbie: use of built-in exceptions Rui Maciel <rui.maciel@gmail.com> - 2013-09-02 18:32 +0100

csiph-web