Question
Can Monitor Exception operation catch errors generated by thread processing and store them in the component variables of the operation?
Answer
In Monitor Exception operation, it is not possible to directly catch errors generated by thread processing and store them in the component variables of the operation. Please consider the following example as one of workarounds.
Example
[Summary]
Monitor Exception operation catches errors that occur in thread processing as errors in Call Script operation to obtain information such as "error_message" component variable.
[Details]
Prepare following three scripts: Parent Script, Child Script, and Grandchild Script.
- Grandchild Script
Place a process that will fail. - Child Script
Place a Call Script operation that calls the grandchild script and enclose it in a Transaction operation.
If the above process is monitored by a Monitor Exception operation, remove the Transaction operation from monitoring scope. - Parent Script
Place a Call Script operation that calls the child script.
Enclose the above process in the Monitor Exception operation, obtain component variables such as "error_message", and obtain the error contents in Assign Variables operation.
Comments
0 comments
Article is closed for comments.