You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/06/03 02:55:25 UTC
svn commit: r781232 -
/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/SubnetUtils.java
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+"]");
}
/*