Exception handling

How to capture the specific exceptions in flow services

Hi…

It you mean how can I catch the exception throw by the flow services, just put all your flow services in Sequence with its property Exit on as Set as Failure and have another sequence below it to catch any errors thrown by first sequence and call getLastError service in the catch sequence.

Sequence 1(Main)
Sequence2(Try) ---- Exit on Failure
Sequence3(Catch) ---- Exit on Done

Refer to developer’s guide for more details. Also try searching exception handling in these forum, I am sure you find many useful and worth reading post.

Jiten

in addition, using pub.flow.getLastError service in Catch block will help you. :slight_smile:

Eddy