Grails Webアプリで、エンドユーザーに届く例外ごとに電子メールを送信したいと思います。
基本的に私は以下と同等の何かを達成するためのエレガントな方法を探しています:
try {
// ... all logic/db-access/etc required to render the page is executed here ...
}
catch (Exception e) {
sendmail("exception@example.com", "An exception was thrown while processing a http-request", e.toString);
}