commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r513206 - /jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java
Date Thu, 01 Mar 2007 07:16:13 GMT
Author: dion
Date: Wed Feb 28 23:16:12 2007
New Revision: 513206

URL: http://svn.apache.org/viewvc?view=rev&rev=513206
Log:
findbugs cleanup

Modified:
    jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java

Modified: jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java?view=diff&rev=513206&r1=513205&r2=513206
==============================================================================
--- jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java (original)
+++ jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java Wed Feb
28 23:16:12 2007
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.mail;
 
+import java.io.UnsupportedEncodingException;
 import java.nio.charset.Charset;
 
 import java.util.ArrayList;
@@ -37,6 +38,7 @@
 import javax.mail.Session;
 import javax.mail.Store;
 import javax.mail.Transport;
+import javax.mail.internet.AddressException;
 import javax.mail.internet.InternetAddress;
 import javax.mail.internet.MimeMessage;
 import javax.mail.internet.MimeMultipart;
@@ -536,7 +538,11 @@
             // it will throw AddressException.
             address.validate();
         }
-        catch (Exception e)
+        catch (AddressException e)
+        {
+            throw new EmailException(e);
+        } 
+        catch (UnsupportedEncodingException e)
         {
             throw new EmailException(e);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message