]> source.dussan.org Git - poi.git/commitdiff
Include seen invalid index in thrown Exception
authorDominik Stadler <centic@apache.org>
Fri, 2 Jan 2015 21:07:25 +0000 (21:07 +0000)
committerDominik Stadler <centic@apache.org>
Fri, 2 Jan 2015 21:07:25 +0000 (21:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1649125 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/util/CellReference.java

index 63196ab3be6280751baf3680dc907ab91dfd5f13..98a30040b27fc368d288e9ddec54a2cc3ad8dbe0 100644 (file)
@@ -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;