james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r739659 - in /james/mime4j/trunk/src/main/java/org/apache/james/mime4j: MimeIOException.java io/MaxLineLimitException.java
Date Sun, 01 Feb 2009 00:04:49 GMT
Author: mwiederkehr
Date: Sun Feb  1 00:04:49 2009
New Revision: 739659

URL: http://svn.apache.org/viewvc?rev=739659&view=rev
Log:
added constructor MimeIOException(String)

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/io/MaxLineLimitException.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java?rev=739659&r1=739658&r2=739659&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeIOException.java Sun Feb
 1 00:04:49 2009
@@ -22,17 +22,27 @@
 import java.io.IOException;
 
 /**
- * A wrapper class based on {@link IOException} for MIME protocol 
- * exceptions.
+ * A wrapper class based on {@link IOException} for MIME protocol exceptions.
  */
 public class MimeIOException extends IOException {
 
     private static final long serialVersionUID = 5393613459533735409L;
 
     /**
+     * Creates a new MimeIOException from the specified detail message.
+     * 
+     * @param message
+     *            detail message.
+     */
+    public MimeIOException(String message) {
+        this(new MimeException(message));
+    }
+
+    /**
      * Constructs an IO exception based on {@link MimeException}.
-     *
-     * @param cause the cause.
+     * 
+     * @param cause
+     *            the cause.
      */
     public MimeIOException(MimeException cause) {
         super(cause.getMessage());

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/io/MaxLineLimitException.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/io/MaxLineLimitException.java?rev=739659&r1=739658&r2=739659&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/io/MaxLineLimitException.java
(original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/io/MaxLineLimitException.java
Sun Feb  1 00:04:49 2009
@@ -19,7 +19,6 @@
 
 package org.apache.james.mime4j.io;
 
-import org.apache.james.mime4j.MimeException;
 import org.apache.james.mime4j.MimeIOException;
 
 /**
@@ -31,7 +30,7 @@
     private static final long serialVersionUID = 8039001187837730773L;
 
     public MaxLineLimitException(final String message) {
-        super(new MimeException(message));
+        super(message);
     }
 
 }



Mime
View raw message