Convert Type of Exception?

Does anyone know how to convert the type of NodeNotFound exception (UiPath.UIAutomationNext.Exceptions.NodeNotFoundException) to a BusinessRule exception (UiPath.Core.BusinessRuleException)?
Thank you in advance

Is it about transferring the message or more?

@Hai_Pham_Viet ,

You can try the below:

Regards,

When serializing to a JSON both, we do see commons and differences:

Maybe changing the classname after serializing and then deserializing can do this unnusual manipulation.

Kindly note:

  • there is the option to set an inner Exception (BRE outer, NodeNotFound inner)
  • the DataDictionary, where the NodeNotFound can be added

Thank you greatly for your prompt support @vishal.kp

1 Like

Thank you a lot for your suggestion @ppr

HI @Hai_Pham_Viet ,
bạn thêm new exception là ok mà

Thank you so much for your assistance @Nguyen_Van_Luong1

Sorry comment late :frowning:
Happy automation

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.