Hi All,
I am trying to create something that will handle all my error handling in one spot.
I would like to be able to do something like this.
try
{
//code here...
}
catch( Exception exc )
{
ErrorHandler.Function(exc)
}
and then my error handler will write the error into my log file, popup a message box to let the user know that he broke something ... and then coninue.
I can do all the error handling but where would I put the error handling function so that is can be called from anywhere and can still use MessageBoxes?
Thanks,
Gavin Mannion
I am trying to create something that will handle all my error handling in one spot.
I would like to be able to do something like this.
try
{
//code here...
}
catch( Exception exc )
{
ErrorHandler.Function(exc)
}
and then my error handler will write the error into my log file, popup a message box to let the user know that he broke something ... and then coninue.
I can do all the error handling but where would I put the error handling function so that is can be called from anywhere and can still use MessageBoxes?
Thanks,
Gavin Mannion