email notify for exceptions Magento

Thrown Exceptions

You can enable email notifications for exceptions that are thrown using errors/local.xml. You can copy your errors/local.xml.template to `errors/local.xml’ and drop in the email address and subject line that you want to use.

<config>
<skin>default</skin>
<report>
<action>email</action>
<subject>domain.com exception</subject>
<email_address>name@example.com</email_address>
<trash>leave</trash>
</report>
</config>
Then, if any exceptions are thrown and caught by Magento’s error handling system, where an error report screen is displayed to the end user, you’ll get an email notification.