If you are looking to get the activity name which has thrown the error, then i don’t think its possible. Here is something which you can try,
Thanks, Rammohan B.