Defining parameters for an exception handler\'s recovery function
I've been using 'define_tsl_exception' and calling a recovery function identified by the 2nd parameter in 'define_tsl_exception' in the normal way.
In some of the examples I've seen, the recovery function takes 'in rc' and 'in func' as input parameters and I've done a similar thing.
But what I would like to know is...
...is it possible to pass other parameters into the recovery function?
I'm finding that if I specify a parameterised function call in the 2nd parameter of 'define_tsl_exception', when I run the script, it tries to execute the recovery function there and then.
Is there any kind of delimiting I can use to say: this 'define_tsl_exception' statement should call this recovery function with these parameters, but not until the exception is actually triggered.
As I say I haven't seen this in any other example, and I've looked at a lot on this board and elsewhere so I was thinking that perhaps this is a limitation of 'define_tsl_exception'.
Can anyone clarify whether it is possible to do this?
Re: Defining parameters for an exception handler\'s recovery function
This is a work around I could think of
How about wrapping the parametrized function in the Handler function.
Let say Handler function is tsl_handle() and parametrized function is user_tsl_handle(in a, in b ..)
Then your exception handling statement would be
define_tsl_exception ( exception_name,"tsl_handle", rc );
And the tsl_handle function would be
rc1 = user_tsl_handle(a,b..);
and user_tsl_handle funtion would be
function user_tsl_handle (in a, in b, ...)