#include <csvError.hpp>
Public Member Functions | |
| CsvError (anch::csv::ErrorCode code, const std::string &message, std::size_t line, std::size_t column) | |
| anch::csv::ErrorCode | getErrorCode () const noexcept |
| std::size_t | getLine () const noexcept |
| std::size_t | getColumn () const noexcept |
CSV error, with the position of the error: line (physical line, from 1 ) and column (field, from 1 , 0 when it is not known)
| anch::csv::CsvError::CsvError | ( | anch::csv::ErrorCode | code, |
| const std::string & | message, | ||
| std::size_t | line, | ||
| std::size_t | column ) |
CsvError constructor: the message is prefixed by the position (line 3, column 2: ...)
| code | the error code |
| message | the error message |
| line | the line |
| column | the column |
|
noexcept |
Column getter
1 , 0 when it is not known
|
noexcept |
Error code getter
|
noexcept |
Line getter
1