30 : runtime_error(createWhatString(
row,
column)),
36 [[nodiscard]] std::size_t
row()
const
43 [[nodiscard]] std::size_t
column()
const
53 static std::string createWhatString(std::size_t
row, std::size_t
column)
55 return std::string(
"CSV parse error at row ") + std::to_string(
row + 1)
56 +
", column " + std::to_string(
column + 1);
61 std::size_t column_ = 0;
Exception thrown on CSV parse error.
Definition csv_error.h:25
std::size_t column() const
Return a 0-based column number where error occurred.
Definition csv_error.h:43
std::size_t row() const
Return a 0-based row number where error occurred.
Definition csv_error.h:36
ParseError(std::size_t row, std::size_t column)
Constructor.
Definition csv_error.h:29