@@ -147,7 +147,7 @@ public boolean next() throws SQLException {
147
147
148
148
private boolean next0 () throws SQLException {
149
149
if (this .closed ) {
150
- throw new SQLException ("This result set is closed. " );
150
+ throw new SQLException ("This result set is closed" );
151
151
}
152
152
if (this .remainingRowAllowance == 0 ) {
153
153
return false ;
@@ -184,7 +184,7 @@ public void close() throws SQLException {
184
184
public boolean wasNull () throws SQLException {
185
185
assertIsOpen ();
186
186
if (this .value == null ) {
187
- throw new SQLException ("No column has been read prior to this call. " );
187
+ throw new SQLException ("No column has been read prior to this call" );
188
188
}
189
189
return Type .NULL .isTypeOf (this .value );
190
190
}
@@ -389,7 +389,7 @@ public int findColumn(String columnLabel) throws SQLException {
389
389
assertIsOpen ();
390
390
var index = this .keys .indexOf (columnLabel );
391
391
if (index == -1 ) {
392
- throw new SQLException ("No such column is present. " );
392
+ throw new SQLException ("No such column is present" );
393
393
}
394
394
return ++index ;
395
395
}
@@ -1152,7 +1152,7 @@ public <T> T unwrap(Class<T> iface) throws SQLException {
1152
1152
return iface .cast (this );
1153
1153
}
1154
1154
else {
1155
- throw new SQLException ("This object does not implement the given interface. " );
1155
+ throw new SQLException ("This object does not implement the given interface" );
1156
1156
}
1157
1157
}
1158
1158
@@ -1219,7 +1219,7 @@ private static String mapToString(Value value, int maxFieldSize) throws SQLExcep
1219
1219
if (Type .NULL .isTypeOf (value )) {
1220
1220
return null ;
1221
1221
}
1222
- throw new SQLException (String .format ("%s value can not be mapped to String. " , value .type ()));
1222
+ throw new SQLException (String .format ("%s value can not be mapped to String" , value .type ()));
1223
1223
}
1224
1224
1225
1225
private static boolean mapToBoolean (Value value ) throws SQLException {
@@ -1238,7 +1238,7 @@ else if (number == 1) {
1238
1238
return true ;
1239
1239
}
1240
1240
else {
1241
- throw new SQLException ("Number values can not be mapped to boolean aside from 0 and 1 values. " );
1241
+ throw new SQLException ("Number values can not be mapped to boolean aside from 0 and 1 values" );
1242
1242
}
1243
1243
}
1244
1244
if (Type .STRING .isTypeOf (value )) {
@@ -1250,10 +1250,10 @@ else if ("1".equals(string)) {
1250
1250
return true ;
1251
1251
}
1252
1252
else {
1253
- throw new SQLException ("String values can not be mapped to boolean aside from '0' and '1' values. " );
1253
+ throw new SQLException ("String values can not be mapped to boolean aside from '0' and '1' values" );
1254
1254
}
1255
1255
}
1256
- throw new SQLException (String .format ("%s value can not be mapped to boolean. " , value .type ()));
1256
+ throw new SQLException (String .format ("%s value can not be mapped to boolean" , value .type ()));
1257
1257
}
1258
1258
1259
1259
private static Byte mapToByte (Value value ) throws SQLException {
@@ -1262,12 +1262,12 @@ private static Byte mapToByte(Value value) throws SQLException {
1262
1262
if (longValue >= Byte .MIN_VALUE && longValue <= Byte .MAX_VALUE ) {
1263
1263
return (byte ) longValue ;
1264
1264
}
1265
- throw new SQLException ("The number is out of byte range. " );
1265
+ throw new SQLException ("The number is out of byte range" );
1266
1266
}
1267
1267
if (Type .NULL .isTypeOf (value )) {
1268
1268
return (byte ) 0 ;
1269
1269
}
1270
- throw new SQLException (String .format ("%s value can not be mapped to byte. " , value .type ()));
1270
+ throw new SQLException (String .format ("%s value can not be mapped to byte" , value .type ()));
1271
1271
}
1272
1272
1273
1273
private static Short mapToShort (Value value ) throws SQLException {
@@ -1276,12 +1276,12 @@ private static Short mapToShort(Value value) throws SQLException {
1276
1276
if (longValue >= Short .MIN_VALUE && longValue <= Short .MAX_VALUE ) {
1277
1277
return (short ) longValue ;
1278
1278
}
1279
- throw new SQLException ("The number is out of short range. " );
1279
+ throw new SQLException ("The number is out of short range" );
1280
1280
}
1281
1281
if (Type .NULL .isTypeOf (value )) {
1282
1282
return (short ) 0 ;
1283
1283
}
1284
- throw new SQLException (String .format ("%s value can not be mapped to short. " , value .type ()));
1284
+ throw new SQLException (String .format ("%s value can not be mapped to short" , value .type ()));
1285
1285
}
1286
1286
1287
1287
private static int mapToInteger (Value value ) throws SQLException {
@@ -1290,12 +1290,12 @@ private static int mapToInteger(Value value) throws SQLException {
1290
1290
if (longValue >= Integer .MIN_VALUE && longValue <= Integer .MAX_VALUE ) {
1291
1291
return (int ) longValue ;
1292
1292
}
1293
- throw new SQLException ("The number is out of int range. " );
1293
+ throw new SQLException ("The number is out of int range" );
1294
1294
}
1295
1295
if (Type .NULL .isTypeOf (value )) {
1296
1296
return 0 ;
1297
1297
}
1298
- throw new SQLException (String .format ("%s value can not be mapped to int. " , value .type ()));
1298
+ throw new SQLException (String .format ("%s value can not be mapped to int" , value .type ()));
1299
1299
}
1300
1300
1301
1301
private static long mapToLong (Value value ) throws SQLException {
@@ -1305,7 +1305,7 @@ private static long mapToLong(Value value) throws SQLException {
1305
1305
if (Type .NULL .isTypeOf (value )) {
1306
1306
return 0L ;
1307
1307
}
1308
- throw new SQLException (String .format ("%s value can not be mapped to long. " , value .type ()));
1308
+ throw new SQLException (String .format ("%s value can not be mapped to long" , value .type ()));
1309
1309
}
1310
1310
1311
1311
private static float mapToFloat (Value value ) throws SQLException {
@@ -1315,12 +1315,12 @@ private static float mapToFloat(Value value) throws SQLException {
1315
1315
if (Double .compare (doubleValue , floatValue ) == 0 ) {
1316
1316
return floatValue ;
1317
1317
}
1318
- throw new SQLException ("The number is out of float range. " );
1318
+ throw new SQLException ("The number is out of float range" );
1319
1319
}
1320
1320
if (Type .NULL .isTypeOf (value )) {
1321
1321
return 0.0f ;
1322
1322
}
1323
- throw new SQLException (String .format ("%s value can not be mapped to float. " , value .type ()));
1323
+ throw new SQLException (String .format ("%s value can not be mapped to float" , value .type ()));
1324
1324
}
1325
1325
1326
1326
private static double mapToDouble (Value value ) throws SQLException {
@@ -1330,7 +1330,7 @@ private static double mapToDouble(Value value) throws SQLException {
1330
1330
if (Type .NULL .isTypeOf (value )) {
1331
1331
return 0.0 ;
1332
1332
}
1333
- throw new SQLException (String .format ("%s value can not be mapped to double. " , value .type ()));
1333
+ throw new SQLException (String .format ("%s value can not be mapped to double" , value .type ()));
1334
1334
}
1335
1335
1336
1336
private static byte [] mapToBytes (Value value , int maxFieldSize ) throws SQLException {
@@ -1340,7 +1340,7 @@ private static byte[] mapToBytes(Value value, int maxFieldSize) throws SQLExcept
1340
1340
if (Type .BYTES .isTypeOf (value )) {
1341
1341
return truncate (value .asByteArray (), maxFieldSize );
1342
1342
}
1343
- throw new SQLException (String .format ("%s value can not be mapped to byte array. " , value .type ()));
1343
+ throw new SQLException (String .format ("%s value can not be mapped to byte array" , value .type ()));
1344
1344
}
1345
1345
1346
1346
private static Reader mapToReader (Value value , int maxFieldSize ) throws SQLException {
@@ -1350,7 +1350,7 @@ private static Reader mapToReader(Value value, int maxFieldSize) throws SQLExcep
1350
1350
if (Type .NULL .isTypeOf (value )) {
1351
1351
return null ;
1352
1352
}
1353
- throw new SQLException (String .format ("%s value can not be mapped to Reader. " , value .type ()));
1353
+ throw new SQLException (String .format ("%s value can not be mapped to Reader" , value .type ()));
1354
1354
}
1355
1355
1356
1356
@ SuppressWarnings ("BigDecimalMethodWithoutRoundingCalled" )
@@ -1361,7 +1361,8 @@ private static BigDecimal mapToBigDecimal(Value value, Integer scale) throws SQL
1361
1361
case INTEGER -> BigDecimal .valueOf (value .asLong ());
1362
1362
case FLOAT -> BigDecimal .valueOf (value .asDouble ());
1363
1363
case NULL -> null ;
1364
- default -> throw new SQLException (String .format ("%s value can not be mapped to BigDecimal." , value .type ()));
1364
+ default -> throw new SQLException (
1365
+ String .format ("%s value can not be mapped to java.math.BigDecimal" , value .type ()));
1365
1366
};
1366
1367
1367
1368
if (result != null && scale != null ) {
@@ -1383,7 +1384,7 @@ private static InputStream mapToAsciiStream(Value value, int maxFieldSize) throw
1383
1384
if (Type .NULL .isTypeOf (value )) {
1384
1385
return null ;
1385
1386
}
1386
- throw new SQLException (String .format ("%s value can not be mapped to InputStream. " , value .type ()));
1387
+ throw new SQLException (String .format ("%s value can not be mapped to java.io.InputStream " , value .type ()));
1387
1388
}
1388
1389
1389
1390
private static InputStream mapToBinaryStream (Value value , int maxFieldSize ) throws SQLException {
@@ -1393,7 +1394,7 @@ private static InputStream mapToBinaryStream(Value value, int maxFieldSize) thro
1393
1394
if (Type .NULL .isTypeOf (value )) {
1394
1395
return null ;
1395
1396
}
1396
- throw new SQLException (String .format ("%s value can not be mapped to InputStream. " , value .type ()));
1397
+ throw new SQLException (String .format ("%s value can not be mapped to java.io.InputStream " , value .type ()));
1397
1398
}
1398
1399
1399
1400
private static Object mapToObject (Value value , int maxFieldSize ) {
0 commit comments