J
Jeff User
Hi
I wanted to write a general procedure to handle all my errors.
My idea was to place various stuff in the error handler then call it,
from all my "Catch" blicks, ending it the Exception.
public whatever Procedure_1()
.....
catch(Exception er)
{
CallErrHandler(er);
}
.....
The error handler routine would actually re-throw the exception after
doing its other tasks (logging, re-wording, etc)
So, If an error occurs, there will never be a "return" from the
Procedure_1.
The compiler though, requires a return clause.
Is there any way around this?
Thanks
Jeff
I wanted to write a general procedure to handle all my errors.
My idea was to place various stuff in the error handler then call it,
from all my "Catch" blicks, ending it the Exception.
public whatever Procedure_1()
.....
catch(Exception er)
{
CallErrHandler(er);
}
.....
The error handler routine would actually re-throw the exception after
doing its other tasks (logging, re-wording, etc)
So, If an error occurs, there will never be a "return" from the
Procedure_1.
The compiler though, requires a return clause.
Is there any way around this?
Thanks
Jeff