Exception types?

How can we get the activity details in the exception type while handling the exception ?

(I want to get the exact activity name or type of the activity in which the exception is occurring)
what type exception should we use to get it done?

create a new exception variable under the generic type “system.exception” (under mscorlib) and name it VarException.
when an exception is caught, (in the “catch” block of a try-catch activity) , log the output of “VarException.Message” so, it will output the exception in the log.

You can use that generally, and add more logging per activity instance to pinpoint the activity which originally threw the exception , but to create a ‘custom’ exception, use BusinessRuleException type.

1 Like

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