Pass application name from Catch section

Suppose any application failed, I want to take that application name in catch section. Suppose excel application failed so it should capture excel as application

please help