Is there a way to send myself the details anytime a Grails Error happens on a Grails site?
What is the best way to set this up? In one place? (trying to stay DRY)
And I would like to include the URL that produced the error.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.
If you intend to catch any Exception happening on your project and mail it, well i am using such setup, and i did it in the following way:
.
Created a Tag in the TagLib:
ALL DONE… 🙂
Now what is happening is, whenever an exception occours(Even in AJAX Calls) the request is redirected to the error page, there we can capture all errors.
The Only place where this setup will not work is in the case of executions which are not binded on the request, that is: JOBS.
In this method i was able to catch all unanticipated Exceptions 🙂
..
thats how i do, hope that Helps 🙂
Regards Kushal