Deutsch   English   Français   Italiano  
<exception-20230901131412@ram.dialup.fu-berlin.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: eternal-september.org!news.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: What sort of exception when a class can't find something?
Date: 1 Sep 2023 12:14:41 GMT
Organization: Stefan Ram
Lines: 15
Expires: 1 Sep 2024 11:59:58 GMT
Message-ID: <exception-20230901131412@ram.dialup.fu-berlin.de>
References: <4v97sj-csgm.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 5kCUW6DXXvOyzZqTT+EjhwsmvAzzCeByFx25e6DloYp9rV
Cancel-Lock: sha1:N8t9LhBipqNynG7U40+MGqMBNcQ= sha256:brYNmckvHyDhPHECgUPhw/1fOAasxCvQOZGqmGGI6GA=
X-Copyright: (C) Copyright 2023 Stefan Ram. All rights reserved.
	Distribution through any means other than regular usenet
	channels is forbidden. It is forbidden to publish this
	article in the Web, to change URIs of this article into links,
        and to transfer the body without this notice, but quotations
        of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
	services to mirror the article in the web. But the article may
	be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE-1901, en-US, it, fr-FR

Chris Green <cl@isbd.net> writes:
>What sort of exception should a class raise in __init__() when it
>can't find an appropriate set of data for the parameter passed in to
>the class instantiation?

  Possibilities:

'EnvironmentError',
'FileNotFoundError',
'NotImplemented',
'NotImplementedError', or
'ValueError'.