mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
#65085 - LineRect shall throw more specific exceptions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889428 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
45995b4a24
commit
053ae3618d
@ -352,7 +352,7 @@ implements HSLFShapeContainer, TableShape<HSLFShape,HSLFTextParagraph> {
|
||||
@Override
|
||||
public double getRowHeight(int row) {
|
||||
if (row < 0 || row >= cells.length) {
|
||||
throw new IllegalArgumentException("Row index '"+row+"' is not within range [0-"+(cells.length-1)+"]");
|
||||
throw new IndexOutOfBoundsException("Row index '"+row+"' is not within range [0-"+(cells.length-1)+"]");
|
||||
}
|
||||
|
||||
return cells[row][0].getAnchor().getHeight();
|
||||
@ -361,7 +361,7 @@ implements HSLFShapeContainer, TableShape<HSLFShape,HSLFTextParagraph> {
|
||||
@Override
|
||||
public void setRowHeight(int row, final double height) {
|
||||
if (row < 0 || row >= cells.length) {
|
||||
throw new IllegalArgumentException("Row index '"+row+"' is not within range [0-"+(cells.length-1)+"]");
|
||||
throw new IndexOutOfBoundsException("Row index '"+row+"' is not within range [0-"+(cells.length-1)+"]");
|
||||
}
|
||||
|
||||
// update row height in the table properties
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user