I want to log errors that happen in our application. Is it possible to set up general error handling for a whole project without having to use try catch blocks in every function or method?
Coming from foxpro...we set up a error handling in the main start up program like this,
on error do vfp_error with error(),message(),message(1),program(),lineno()
On an error this would show a custom error form and log the error to a file project wide. We then handled specific methods using local error handling if we needed.
Coming from foxpro...we set up a error handling in the main start up program like this,
on error do vfp_error with error(),message(),message(1),program(),lineno()
On an error this would show a custom error form and log the error to a file project wide. We then handled specific methods using local error handling if we needed.