Hi Prachi,
You can right-click an activity in a microflow and set the error handling to "Custom ....", then you can create 2 outgoing flows from that activity and mark one as the error handler. This is actually a try-catch setup.
For more details about error handling, I can recommend this learning path: https://academy.mendix.com/link/paths/81/Error-Handling
Good luck!
Johan