Public Types | Public Member Functions | Private Attributes
ProgramOptions::ValueError Class Reference

Used for signaling validation errors when trying to assign option values. More...

#include <errors.h>

Inheritance diagram for ProgramOptions::ValueError:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

Used for signaling validation errors when trying to assign option values.

Definition at line 88 of file errors.h.


Member Enumeration Documentation

Enumerator:
multiple_occurences 
invalid_default 
invalid_value 

Definition at line 90 of file errors.h.


Constructor & Destructor Documentation

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.

Definition at line 96 of file errors.h.


Member Function Documentation

const std::string& ProgramOptions::ValueError::ctx ( ) const [inline]

Definition at line 99 of file errors.h.

const std::string& ProgramOptions::ValueError::key ( ) const [inline]

Definition at line 98 of file errors.h.

Definition at line 97 of file errors.h.

const std::string& ProgramOptions::ValueError::value ( ) const [inline]

Definition at line 100 of file errors.h.


Member Data Documentation

std::string ProgramOptions::ValueError::ctx_ [private]

Definition at line 102 of file errors.h.

std::string ProgramOptions::ValueError::key_ [private]

Definition at line 103 of file errors.h.

Definition at line 105 of file errors.h.

std::string ProgramOptions::ValueError::value_ [private]

Definition at line 104 of file errors.h.


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


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:41