Out of bounds getters for Results return undefined

This commit is contained in:
Scott Kyle 2015-10-12 15:35:13 -07:00
parent b70e5432b7
commit c8b6efb320
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ Row Results::get(std::size_t row_ndx)
{
verify_attached();
if (row_ndx >= table_view.size()) {
throw std::range_error(std::string("Index ") + std::to_string(row_ndx) + " is outside of range 0..." +
throw std::out_of_range(std::string("Index ") + std::to_string(row_ndx) + " is outside of range 0..." +
std::to_string(table_view.size()) + ".");
}
return table_view.get(row_ndx);