Inheriting from WSF_FILTERED_ROUTER_EXECUTION
I redefine the clean
to be able to close DB Connections. But when there is an assertion failure, I don't know where to call the clean
on a rescue clause. In which feature do I have to call my clean on a rescue
clause??
Asked
Active
Viewed 26 times
0

Pipo
- 4,653
- 38
- 47
1 Answers
1
Check WSF_EXECUTION.clean
which is called after each request execution.
There is also WSF_EXECUTION.execute_rescue (e: detachable EXCEPTION)
.
You can redefine any of them for your purpose.
But I recommend rescuing as early as possible, this way you may be able to have a proper handling, rather than a default one.

Jocelyn
- 693
- 5
- 8
-
the clean doesnt seem to be called on case of exception, thx for the other!!! – Pipo Dec 04 '20 at 14:35