From: Eric Hodel Date: 2005-11-10T03:50:50+09:00 Subject: Re: Which Error for bad config files? On Nov 9, 2005, at 10:22 AM, Trans wrote: > James Britt wrote: >> Trans wrote: >>> When loading a configuration file and it proves to be invalid in >>> some >>> way, what class of error should be raised? >> >> InvalidConfigurationFileError? >> >> :) >> >> I.e., isn't this a case where you want to create a semantically >> meaningful Exception class? > > Perhaps, but what I'm working on is really quite general. And even > if I > need to create my own class I want to subclass the most appropriate > preexisting Error class. RuntimeError then. -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04