Vince's CSV Parser
Loading...
Searching...
No Matches
csv_error.hpp File Reference

Explicit error reporting shared by CSV reading, writing and DataFrames. More...

#include "common.hpp"
#include <cstring>
#include <memory>
#include <string>
#include <system_error>
#include <utility>

Go to the source code of this file.

Classes

struct  csv::CSVError
 A diagnostic whose text remains valid for the lifetime of the error. More...
 

Namespaces

namespace  csv
 The all encompassing namespace.
 

Typedefs

typedef const char * csv::internals::csv_error_message
 

Enumerations

enum class  csv::CSVConversionError {
  csv::None = 0 , csv::NotANumber , csv::Overflow , csv::FloatToInt ,
  csv::NegativeToUnsigned
}
 Non-throwing CSVField conversion result. More...
 
enum class  csv::CSVErrorCode {
  csv::None , csv::InvalidArgument , csv::InvalidFormat , csv::InvalidChunkSize ,
  csv::OpenFailed , csv::MappingFailed , csv::ReadFailed , csv::WriteFailed ,
  csv::UnsupportedEncoding , csv::RowTooLarge , csv::RowLengthMismatch , csv::ColumnNotFound ,
  csv::IndexOutOfBounds , csv::ConversionFailed , csv::MissingKeyColumn , csv::KeyNotFound ,
  csv::DuplicateKey , csv::UnkeyedFrame , csv::ReadOnlyProxy , csv::InvalidProxy ,
  csv::KeyColumnProtected , csv::UnsupportedOperation , csv::SizeLimitExceeded
}
 Operational failures reported through CSVError. More...
 

Functions

const char * csv::csv_conversion_error_message (CSVConversionError error) noexcept
 Return a stable human-readable description for a CSVConversionError.
 

Detailed Description

Explicit error reporting shared by CSV reading, writing and DataFrames.

Definition in file csv_error.hpp.

Typedef Documentation

◆ csv_error_message

typedef const char* csv::internals::csv_error_message

Definition at line 41 of file csv_error.hpp.