Skip to content

Commit 0022abc

Browse files
author
chengyitian
committed
AJ-427: optimize exception info.
1 parent 7c9bb46 commit 0022abc

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/com/xxdb/data/BasicDecimal128.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public BasicDecimal128(String data, int scale) {
2424

2525
public BasicDecimal128(BigInteger unscaledVal, int scale) {
2626
if (scale < 0 || scale > 38) {
27-
throw new RuntimeException("Scale " + scale + "is out of bounds, it must be in [0,38].");
27+
throw new RuntimeException("Scale " + scale + " is out of bounds, it must be in [0,38].");
2828
}
2929

3030
BigDecimal bd = new BigDecimal(unscaledVal);

src/com/xxdb/data/BasicDecimal128Vector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public BasicDecimal128Vector(int size, int scale) {
3737
public BasicDecimal128Vector(String[] dataValue, int scale) {
3838
super(DATA_FORM.DF_VECTOR);
3939
if (scale < 0 || scale > 38) {
40-
throw new RuntimeException("Scale " + scale + "is out of bounds, it must be in [0,38].");
40+
throw new RuntimeException("Scale " + scale + " is out of bounds, it must be in [0,38].");
4141
}
4242
this.scale_ = scale;
4343

src/com/xxdb/data/BasicDecimal32.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public BasicDecimal32(String value, int scale) {
2828
}
2929

3030
if (scale < 0 || scale > 9) {
31-
throw new RuntimeException("Scale " + scale + "is out of bounds, it must be in [0,9].");
31+
throw new RuntimeException("Scale " + scale + " is out of bounds, it must be in [0,9].");
3232
}
3333
scale_ = scale;
3434

src/com/xxdb/data/BasicDecimal32Vector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public BasicDecimal32Vector(int size, int scale){
4141
public BasicDecimal32Vector(String[] data, int scale) {
4242
super(DATA_FORM.DF_VECTOR);
4343
if (scale < 0 || scale > 9) {
44-
throw new RuntimeException("Scale " + scale + "is out of bounds, it must be in [0,9].");
44+
throw new RuntimeException("Scale " + scale + " is out of bounds, it must be in [0,9].");
4545
}
4646
scale_ = scale;
4747

src/com/xxdb/data/BasicDecimal64.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public BasicDecimal64(String value, int scale) {
3333
}
3434

3535
if (scale < 0 || scale > 18) {
36-
throw new RuntimeException("Scale out of bound (valid range: [0, 18], but get: " + scale + ")");
36+
throw new RuntimeException("Scale " + scale + " is out of bounds, it must be in [0,18].");
3737
}
3838
scale_ = scale;
3939

src/com/xxdb/data/BasicDecimal64Vector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public BasicDecimal64Vector(int size, int scale){
5252
public BasicDecimal64Vector(String[] data, int scale) {
5353
super(DATA_FORM.DF_VECTOR);
5454
if (scale < 0 || scale > 18) {
55-
throw new RuntimeException("Scale out of bound (valid range: [0, 18], but get: " + scale + ")");
55+
throw new RuntimeException("Scale " + scale + " is out of bounds, it must be in [0,18].");
5656
}
5757
scale_ = scale;
5858

0 commit comments

Comments
 (0)