Exception result - if statement to check Exception result and stop flow

Hi,

I want to know, how can i use Try/catch Exception (result) into IF statement and stop the flow…

Right now when I get an exception in try/catch - catch … it show the error and then its continue to next step and do not know how can i stop the flow…
can someone help…
thanks in advance

@Latif

You can use Throw activity in Catch, This will stop the workflow

Mark as solution if this helps

Thanks

Can’t I use IF statement to shoose different ways…
As i need to write ErrorCode and Error Status also.

@Latif

You can use, but you have to check the possible errors and in IF you have to check

Also if you can give the specific exception you expect then create that exactly and in catches you can select the execption type and place your throw with message

Eg:
In Try:
image

In Catch:

Hope this helps you

Thanks

@ksrinu070184

Thanks I act did not got it…it goes on wrong transition every time :frowning: