AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::csv::CsvError Class Reference

#include <csvError.hpp>

Inheritance diagram for anch::csv::CsvError:
Collaboration diagram for anch::csv::CsvError:

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

Detailed Description

CSV error, with the position of the error: line (physical line, from 1 ) and column (field, from 1 , 0 when it is not known)

Author
Vincent Lachenal
Since
0.3

Constructor & Destructor Documentation

◆ CsvError()

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: ...)

Parameters
codethe error code
messagethe error message
linethe line
columnthe column

Member Function Documentation

◆ getColumn()

std::size_t anch::csv::CsvError::getColumn ( ) const
noexcept

Column getter

Returns
the column, from 1 , 0 when it is not known
Here is the call graph for this function:

◆ getErrorCode()

anch::csv::ErrorCode anch::csv::CsvError::getErrorCode ( ) const
noexcept

Error code getter

Returns
the error code

◆ getLine()

std::size_t anch::csv::CsvError::getLine ( ) const
noexcept

Line getter

Returns
the line, from 1
Here is the call graph for this function:

The documentation for this class was generated from the following file: