So if there is an error. Error page is shown which displays the detail of error. I want to automatically email this to me so I will be able to see what error the users are seeing. I was able to make it send email when error.xhtml is rendered. I want to catch the stackTrace when there is an error and get that emailed to me.
My question is how would I be able to catch the error. I hope I am clear with my problem.