Used for signaling validation errors when trying to assign option values. More...
#include <errors.h>
Public Types | |
enum | Type { multiple_occurences, invalid_default, invalid_value } |
Public Member Functions | |
const std::string & | ctx () const |
const std::string & | key () const |
Type | type () const |
const std::string & | value () const |
ValueError (const std::string &ctx, Type t, const std::string &opt, const std::string &value) | |
~ValueError () throw () | |
Private Attributes | |
std::string | ctx_ |
std::string | key_ |
Type | type_ |
std::string | value_ |
Used for signaling validation errors when trying to assign option values.
ProgramOptions::ValueError::ValueError | ( | const std::string & | ctx, |
Type | t, | ||
const std::string & | opt, | ||
const std::string & | value | ||
) |
Definition at line 947 of file program_options.cpp.
ProgramOptions::ValueError::~ValueError | ( | ) | throw () [inline] |
const std::string& ProgramOptions::ValueError::ctx | ( | ) | const [inline] |
const std::string& ProgramOptions::ValueError::key | ( | ) | const [inline] |
Type ProgramOptions::ValueError::type | ( | ) | const [inline] |
const std::string& ProgramOptions::ValueError::value | ( | ) | const [inline] |
std::string ProgramOptions::ValueError::ctx_ [private] |
std::string ProgramOptions::ValueError::key_ [private] |
Type ProgramOptions::ValueError::type_ [private] |
std::string ProgramOptions::ValueError::value_ [private] |