You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by se...@apache.org on 2001/12/07 22:53:27 UTC
cvs commit: jakarta-james/src/java/org/apache/james James.java
serge 01/12/07 13:53:27
Modified: src/java/org/apache/james James.java
Log:
Have it pass the underlying exception (instead of just swallowing it). Submitted by Matthew Pangaro <mp...@lokitech.com>
Revision Changes Path
1.15 +4 -4 jakarta-james/src/java/org/apache/james/James.java
Index: James.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/James.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- James.java 2001/11/01 17:44:26 1.14
+++ James.java 2001/12/07 21:53:27 1.15
@@ -52,8 +52,8 @@
* @author Serge
* @author <a href="mailto:charles@benett1.demon.co.uk">Charles Benett</a>
*
- * This is $Revision: 1.14 $
- * Committed on $Date: 2001/11/01 17:44:26 $ by: $Author: serge $
+ * This is $Revision: 1.15 $
+ * Committed on $Date: 2001/12/07 21:53:27 $ by: $Author: serge $
*/
public class James
extends AbstractLoggable
@@ -264,7 +264,7 @@
spool.remove(mailimpl);
} catch (Exception ignored) {
}
- throw new MessagingException("Exception spooling message: " + e.getMessage());
+ throw new MessagingException("Exception spooling message: " + e.getMessage(), e);
}
getLogger().info("Mail " + mailimpl.getName() + " pushed in spool");
}
@@ -381,7 +381,7 @@
reply.setContent(multipart);
reply.setHeader("Content-Type", multipart.getContentType());
} catch (IOException ioe) {
- throw new MessagingException("Unable to create multipart body");
+ throw new MessagingException("Unable to create multipart body", ioe);
}
//Send it off...
sendMail(bouncer, recipients, reply);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>