poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1649125 - /poi/trunk/src/java/org/apache/poi/ss/util/CellReference.java
Date Fri, 02 Jan 2015 21:07:25 GMT
Author: centic
Date: Fri Jan  2 21:07:25 2015
New Revision: 1649125

URL: http://svn.apache.org/r1649125
Log:
Include seen invalid index in thrown Exception

Modified:
    poi/trunk/src/java/org/apache/poi/ss/util/CellReference.java

Modified: poi/trunk/src/java/org/apache/poi/ss/util/CellReference.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/util/CellReference.java?rev=1649125&r1=1649124&r2=1649125&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/util/CellReference.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/util/CellReference.java Fri Jan  2 21:07:25 2015
@@ -133,10 +133,10 @@ public class CellReference {
 		// TODO - "-1" is a special value being temporarily used for whole row and whole column
area references.
 		// so these checks are currently N.Q.R.
 		if(pRow < -1) {
-			throw new IllegalArgumentException("row index may not be negative");
+			throw new IllegalArgumentException("row index may not be negative, but had " + pRow);
 		}
 		if(pCol < -1) {
-			throw new IllegalArgumentException("column index may not be negative");
+			throw new IllegalArgumentException("column index may not be negative, but had " + pCol);
 		}
 		_sheetName = pSheetName;
 		_rowIndex=pRow;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message