From c8b6efb320b6153e8ee2cdc0302f290345169279 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Mon, 12 Oct 2015 15:35:13 -0700 Subject: [PATCH] Out of bounds getters for Results return undefined --- results.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/results.cpp b/results.cpp index f33fc465..e4ad126e 100644 --- a/results.cpp +++ b/results.cpp @@ -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);