mirror of https://github.com/apache/poi.git
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:
parent
3b4ab5e30b
commit
6359ff892f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue