Index: src/java/org/apache/james/core/MimeMessageInputStreamSource.java
===================================================================
RCS file: /home/cvspublic/jakarta-james/src/java/org/apache/james/core/MimeMessageInputStreamSource.java,v
retrieving revision 1.7
diff -u -r1.7 MimeMessageInputStreamSource.java
--- src/java/org/apache/james/core/MimeMessageInputStreamSource.java	17 Aug 2002 18:16:24 -0000	1.7
+++ src/java/org/apache/james/core/MimeMessageInputStreamSource.java	31 Aug 2002 02:33:14 -0000
@@ -7,6 +7,7 @@
  */
 package org.apache.james.core;
 
+import javax.mail.MessagingException;
 import java.io.*;
 
 /**
@@ -44,7 +45,8 @@
      * @param key the prefix for the name of the temp file
      * @param in the stream containing the MimeMessage
      */
-    public MimeMessageInputStreamSource(String key, InputStream in) {
+    public MimeMessageInputStreamSource(String key, InputStream in)
+            throws MessagingException {
         //We want to immediately read this into a temporary file
         //Create a temp file and channel the input stream into it
         OutputStream fout = null;
@@ -60,7 +62,7 @@
 
             sourceId = file.getCanonicalPath();
         } catch (IOException ioe) {
-            throw new RuntimeException("Unable to retrieve the data: " + ioe.getMessage());
+            throw new MessagingException("Unable to retrieve the data: " + ioe.getMessage(), ioe);
         } finally {
             try {
                 if (fout != null) {

