commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r231331 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java
Date Wed, 10 Aug 2005 21:22:12 GMT
Author: ggregory
Date: Wed Aug 10 14:22:11 2005
New Revision: 231331

URL: http://svn.apache.org/viewcvs?rev=231331&view=rev
Log:
Better exception messages.

Modified:
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java?rev=231331&r1=231330&r2=231331&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java
Wed Aug 10 14:22:11 2005
@@ -556,10 +556,10 @@
             return this;
         }
         if (startIndex < 0 || startIndex > chars.length) {
-            throw new StringIndexOutOfBoundsException("startIndex must be valid");
+            throw new StringIndexOutOfBoundsException("Invalid startIndex: " + length);
         }
         if (length < 0 || (startIndex + length) > chars.length) {
-            throw new StringIndexOutOfBoundsException("length must be valid");
+            throw new StringIndexOutOfBoundsException("Invalid length: " + length);
         }
         if (length > 0) {
             int len = length();



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message