Je souhaite que mon application Web Grails envoie un e-mail pour chaque exception qui parvient à l'utilisateur final.Publier des journaux d'exceptions dans une application Web Grails en direct
Fondamentalement, je suis à la recherche d'une façon élégante pour atteindre quelque chose d'équivalent à:
try {
// ... all logic/db-access/etc required to render the page is executed here ...
}
catch (Exception e) {
sendmail("[email protected]", "An exception was thrown while processing a http-request", e.toString);
}