added email_exception method to email errors