Stop Process after Exception

studio
trycatch

#1

Hi,
i use try/catch activity to manage NullReferenceException.
How to stop the workflow if there is an Exception?


#2

Use Terminate Workflow activity inside the Exception block of Try/Catch you already using. Or Use Rethrow activity inside the exception block and capture the exception outside your main sequence by defining your entire sequences into an Try/Catch Block.

Try{ //Your entire sequences
try{ //Seqence throws null exception
}
catch Null exception{
Rethrow or Terminate workflow activity
}
}
catch exception{
}