Hello,
ok, I could answer my question on my own. I just created a wrapper function to handle the exception.
The call of this wrapper function is done in the original jython script:
Name = ‚first‘
Paras = {‚p1‘:1,‘p2‘,2}
rc.callProcedure(„wrap“,{„procName“:Name,“procParas“:Paras})
The procedure „wrap“ with parameters „procName“ and „procParas“ hast the following content:
Try
Jython Server Script 1
Catch User Exception
Jython Server Script 2 # log the exception
The Jython Server Script 1 comes here:
import ast
paras = ast.literal_eval(rc.lookup("procPara"))
rc.callProcedure(rc.lookup("procName"),paras)
Maybe it is not the smartest solution but it seems tob e working.
BR
Bernhard
========================================================================
Bernhard Schmitt
Consultant Softwaretest
E-Mail: bernhard.schmitt@?.de
------------------------------------------------------------------------
imbus Rhein-Main GmbH, Kirschgartenstraße 15, 65719 Hofheim, DEUTSCHLAND
Tel. +49 6192 92192-0, Fax +49 6192 92192-50
info@?.de http://www.imbus.de
Geschäftsführer: Frank Schmeißner, Tilo Linz, Thomas Roßner
Sitz der Gesellschaft: Hofheim
Registergericht: Frankfurt am Main, HRB 52155
========================================================================