We've a process to insert account to Target System. At the one of the step we executing script. If something goes wrong we are throwing an exception:
Public Function VRS_UNSAccountB_Insert(...) As Boolean
...
If retMessages.Length = 0 Then
Return True
Else
Throw New Exception(retMessages.ToString())
End If
End Function
How to pass this exception to "Notification on error" Message body?