I have my own exception based on some condition and want to raise an alert when control comes in this catch block
catch (ApplicationException ex) { //want to call window.alert function here }