I was wondering if it's possible to create a general error handler that handles all errors in a form or maybe even in the application.
I used to program in VBA and I always had to specify an error handler for each procedure I created. My main problem with this always was that I had many small (one or two line) procedures so that it took a tremendous amount of work to add error handlers to all those procedures. I used to use a tool called VZ Tools that allowed me to add a error handler automatically but I still had to do this by one procedure at a time.
So I'd like to know what the best approach is in VB.NET to create an application which handles all errors correctly. Should I still do this on procedure level or are there more advanced solutions available? Maybe with an option to override the general procedure if needed?
Thanks,
Floris
I used to program in VBA and I always had to specify an error handler for each procedure I created. My main problem with this always was that I had many small (one or two line) procedures so that it took a tremendous amount of work to add error handlers to all those procedures. I used to use a tool called VZ Tools that allowed me to add a error handler automatically but I still had to do this by one procedure at a time.
So I'd like to know what the best approach is in VB.NET to create an application which handles all errors correctly. Should I still do this on procedure level or are there more advanced solutions available? Maybe with an option to override the general procedure if needed?
Thanks,
Floris