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 <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]">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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>