RemoteException wrapping UiPath.Core.BusinessRuleException

Hi everyone,

In one of my xaml files I throw BusinessRuleExceptions when some inputs do not match a specified rule, like so (inside a Throw activity):

“New BusinessRuleException(String.Format(“Tipo di richiesta non valido, riga {0}!”, rowIdx+1))”

then the “invoker” workflow has a try catch where I tried to catch the BusinessRuleExceptions, but I found that the BusinessRuleExceptions is wrapped inside a RemoteException and I don’t understand why. Is that by design? If so, why? If I throw a specified type of exception, I should catch that type, not another.

Many thanks,
Giovanni