commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r781232 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/SubnetUtils.java
Date Wed, 03 Jun 2009 00:55:25 GMT
Author: sebb
Date: Wed Jun  3 00:55:25 2009
New Revision: 781232

URL: http://svn.apache.org/viewvc?rev=781232&view=rev
Log:
Tweak exception message to show why check failed

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/SubnetUtils.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/SubnetUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/SubnetUtils.java?rev=781232&r1=781231&r2=781232&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/SubnetUtils.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/SubnetUtils.java
Wed Jun  3 00:55:25 2009
@@ -213,7 +213,7 @@
         if (value > begin && value <= end) // (begin,end]
             return value;
 
-        throw new IllegalArgumentException("Value out of range: [" + value + "]");
+        throw new IllegalArgumentException("Value [" + value + "] not in range ("+begin+","+end+"]");
     }
 
     /*



Mime
View raw message