System.Exception covers all system exceptions regardless of what type of exception it is…
What UiPath generates or what we throw as new exception all fall under system.exception…
But each exception that UiPath generates fall under different subtypes for example nullreference exception is a system exception only but internal type is an io exception…
So ideally if you want to raise or catch specific exceptions then those exceptions are to be raised accordingly
Hi , Thank you for your advice!
I know if I raise New BuisinessRuleException(“text”) in throw activity, I should catch this thow in Catch block BuisnessRuleSection.
Will you show me the the convenient URL to know whole Catch Block available error section like BusinessRuleexceptionSection, NullReferenceExcepton, FileNotExistExeption and so on ?
Also the order of catch block matters…for example if you have system.exception as first catch and add nullreference or any other exception as next catch…the second catch will never be executed…you have to make sure the wider exception should be at last
And just be defining you cannot get exception details in it…you have to explicitly assign the value…in the catch block use an assign activity and assign excep_sysexcep = exception then it wpuld be initialized