2#include "../csv_exceptions.hpp"
5 template<
typename KeyType>
7 template<
typename KeyType>
9 template<
typename KeyType>
13#if CSV_EXCEPTIONS_ENABLED
14namespace csv {
namespace internals {
15 inline void throw_dataframe_error(
const CSVError& error) {
20 if (error.context == CSV_ERROR_INDEX_OUT_OF_BOUNDS)
break;
21 throw std::out_of_range(std::string(error.context));
24 throw std::out_of_range(std::string(error.context));
void throw_error(const CSVError &error)
Translate explicit library failures while preserving legacy exception categories.
The all encompassing namespace.
@ IndexOutOfBounds
A row/column position exceeds the visible schema or physical record width.
@ None
Success, including end-of-stream without a row.
@ KeyNotFound
A requested row key is absent from the frame's key index.
@ ColumnNotFound
A requested name is absent from the visible column schema.