I
ittium
Group,
I have a situation where some of the class/non-class methodsmake many
levels of function calls, some of the function in this call hierarchy
may throw exception, what is a good idea
#1 inner function rethrow (by empty throw), such that exception is
propagated back to the top level function.
#2inner function does not throw (by empty throw), this exception will be
by **default** propagated back to the top level routine (assuming
intermediate routines are not catching the exception).
#3 When it is a good idea that function(inner) receiving the exception
or some intermediate function catch it and from there error event is
propagated back through some error code.
thanks
Ittium
I have a situation where some of the class/non-class methodsmake many
levels of function calls, some of the function in this call hierarchy
may throw exception, what is a good idea
#1 inner function rethrow (by empty throw), such that exception is
propagated back to the top level function.
#2inner function does not throw (by empty throw), this exception will be
by **default** propagated back to the top level routine (assuming
intermediate routines are not catching the exception).
#3 When it is a good idea that function(inner) receiving the exception
or some intermediate function catch it and from there error event is
propagated back through some error code.
thanks
Ittium