T
Trans
When loading a configuration file and it proves to be invalid in some
way, what class of error should be raised?
T.
way, what class of error should be raised?
T.
Trans said:When loading a configuration file and it proves to be invalid in some
way, what class of error should be raised?
James said: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.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.