Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit a6f5874

Browse files
committed
Merge branch 'invalid-argument' of https://github.com/schedutron/peloton into invalid-argument
2 parents ab16393 + 3d2cbed commit a6f5874

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/include/type/value_factory.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ class ValueFactory {
254254
} catch (std::out_of_range &e) {
255255
throw Exception(ExceptionType::OUT_OF_RANGE,
256256
"Numeric value out of range.");
257+
} catch (std::invalid_argument &e) {
258+
throw Exception("Invalid input syntax for integer: \'" + str + "\'");
257259
}
260+
258261
if (integer > PELOTON_INT32_MAX || integer < PELOTON_INT32_MIN)
259262
throw Exception(ExceptionType::OUT_OF_RANGE,
260263
"Numeric value out of range.");

0 commit comments

Comments
 (0)