Qx v0.5.8
Qt Extensions Library
|
The DsvParseError class is used to report errors while parsing an array of delimiter separated values. More...
#include <qx/core/qx-dsvtable.h>
Public Types | |
enum | ParseError { NoError , IllegalEscape , UnterminatedField , UnevenColumns , InternalError } |
Public Member Functions | |
DsvParseError () | |
DsvParseError (ParseError error, qsizetype offset) | |
ParseError | error () const |
QString | errorString () const |
qsizetype | offset () const |
This enum describes the type of error that occurred during the parsing of a DsvTable.
Qx::DsvParseError::DsvParseError | ( | ) |
Constructs a parse error report set to ParseError::NoError.
Qx::DsvParseError::DsvParseError | ( | ParseError | error, |
qsizetype | offset ) |
Constructs a parse error report set to error, with offset offset.
DsvParseError::ParseError Qx::DsvParseError::error | ( | ) | const |
Returns the type of parse error. Is equal to DsvParseError::NoError if the table was parsed correctly.
QString Qx::DsvParseError::errorString | ( | ) | const |
Returns the human-readable message appropriate for the reported DsvTable parsing error.
qsizetype Qx::DsvParseError::offset | ( | ) | const |
Returns the offset in the input string where the parse error occurred.