Sujet : Re: What sort of exception when a class can't find something?
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 01. Sep 2023, 13:14:41
Autres entêtes
Organisation : Stefan Ram
Message-ID : <exception-20230901131412@ram.dialup.fu-berlin.de>
References : 1
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'.