in reply to Re: Error handling in a module
in thread Error handling in a module

Hi Ken

Thanks as always for your very helpful reply

Some of your points seem to indicate a single action to handle exceptions; I'd suggest there should be at least two: how you present problems to the user and how you present problems to the maintainer

You are right, I am thinking here of just one form of error handling...

This is because I am writing a module that will help others deal with the end user - the person browsing the website. The module is only concerned about providing error reporting to the programmer using it in something bigger. It is up to them to provide suitable messaging to the end user. It is up to me to make it easy for them to do that.

Of course, I am writing this module because it is something I want to use. So, in the first instance, I will be both using the error reports from the module and serving more helpful error reports to the end user.