Include seen invalid index in thrown Exception

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1649125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2015-01-02 21:07:25 +00:00
parent e8c5bd48ad
commit b930f0c46c
1 changed files with 2 additions and 2 deletions

View 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;