Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

例外メッセージの修正 #65

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ private Point getCellPosition(final XlsCell anno) throws AnnotationInvalidExcept
} else {
if(anno.row() < 0 || anno.column() < 0) {
throw new AnnotationInvalidException(
String.format("@XlsCell#column or row soulde be greather than or equal zero. (colunm=%d, row=%d)",
anno.row(), anno.column()), anno);
String.format("@XlsCell#column or row should be greater than or equal zero. (column=%d, row=%d)",
anno.column(), anno.row()), anno);
}
return new Point(anno.column(), anno.row());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ private Point getHeaderPosition(final Sheet sheet, final XlsHorizontalRecords an
final Point address = Utils.parseCellAddress(anno.headerAddress());
if(address == null) {
throw new AnnotationInvalidException(
String.format("@XlsHorizontalRecors#headerAddress is wrong cell address '%s'.", anno.headerAddress()), anno);
String.format("@XlsHorizontalRecords#headerAddress is wrong cell address '%s'.", anno.headerAddress()), anno);
}

return address;
Expand All @@ -356,7 +356,7 @@ private Point getHeaderPosition(final Sheet sheet, final XlsHorizontalRecords an
// column, rowのアドレスを直接指定の場合
if(anno.headerColumn() < 0 || anno.headerRow() < 0) {
throw new AnnotationInvalidException(
String.format("@XlsHorizontalRecors#headerColumn or headerRow soulde be greather than or equal zero. (headerColulmn=%d, headerRow=%d)",
String.format("@XlsHorizontalRecords#headerColumn or headerRow should be greater than or equal zero. (headerColulmn=%d, headerRow=%d)",
anno.headerColumn(), anno.headerRow()), anno);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private Point getLabelPosition(final Sheet sheet, final XlsLabelledCell anno, fi
// column, rowのアドレスを直接指定の場合
if(anno.labelColumn() < 0 || anno.labelRow() < 0) {
throw new AnnotationInvalidException(
String.format("@XlsLabelledCell#labelColumn or labelRow soulde be greather than or equal zero. (headerColulmn=%d, headerRow=%d)",
String.format("@XlsLabelledCell#labelColumn or labelRow should be greater than or equal zero. (headerColulmn=%d, headerRow=%d)",
anno.labelColumn(), anno.labelRow()), anno);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ private Point getHeaderPosition(final Sheet sheet, final XlsVerticalRecords anno
} else {
if(anno.headerColumn() < 0 || anno.headerRow() < 0) {
throw new AnnotationInvalidException(
String.format("@XlsVerticalRecords#headerColumn or headerRow soulde be greather than or equal zero. (headerColulmn=%d, headerRow=%d)",
String.format("@XlsVerticalRecords#headerColumn or headerRow should be greater than or equal zero. (headerColulmn=%d, headerRow=%d)",
anno.headerColumn(), anno.headerRow()), anno);
}
return new Point(anno.headerColumn(), anno.headerRow());
Expand Down