directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r359557 - /directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java
Date Wed, 28 Dec 2005 16:23:51 GMT
Author: akarasulu
Date: Wed Dec 28 08:23:41 2005
New Revision: 359557

URL: http://svn.apache.org/viewcvs?rev=359557&view=rev
Log:
Calling IllegalArgumentException's initCause() with underlying exception.

Modified:
    directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java

Modified: directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java
URL: http://svn.apache.org/viewcvs/directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java?rev=359557&r1=359556&r2=359557&view=diff
==============================================================================
--- directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java (original)
+++ directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java Wed Dec
28 08:23:41 2005
@@ -93,7 +93,9 @@
         {
             String msg = "Collection of addresses must contain only InetAddress instances";
             log.error( msg, ase );
-            throw new IllegalArgumentException( msg );
+            IllegalArgumentException iae = new IllegalArgumentException( msg );
+            iae.initCause( ase );
+            throw iae;
         }
     }
     



Mime
View raw message