fix exception message

This commit is contained in:
Alex Fabijanic 2017-09-04 10:47:03 -05:00
parent b4c62584c7
commit e59fba4ddd

View File

@ -74,7 +74,7 @@ DateTime::DateTime(int otherYear, int otherMonth, int otherDay, int otherHour, i
throw Poco::InvalidArgumentException(Poco::format("Date time is %d-%d-%dT%d:%d:%d:%d:%d\n"
"Valid values:\n"
"0 <= year <= 9999\n"
"1 <= year <= 12\n"
"1 <= month <= 12\n"
"1 <= day <= %d\n"
"0 <= hour <= 23\n"
"0 <= minute <= 59\n"
@ -175,7 +175,7 @@ DateTime& DateTime::assign(int otherYear, int otherMonth, int otherDay, int othe
throw Poco::InvalidArgumentException(Poco::format("Date time is %d-%d-%dT%d:%d:%d:%d:%d\n"
"Valid values:\n"
"0 <= year <= 9999\n"
"1 <= year <= 12\n"
"1 <= month <= 12\n"
"1 <= day <= %d\n"
"0 <= hour <= 23\n"
"0 <= minute <= 59\n"