Public Member Functions | List of all members
UniversalError Class Reference

Container for error reports. More...

#include <universal_error.hpp>

Public Member Functions

 UniversalError (std::string const &err_msg)
 Class constructor. More...
 
 UniversalError (const UniversalError &origin)
 Copy constructor. More...
 
void Append2ErrorMessage (std::string const &msg)
 Appends std::string to the error message. More...
 
void AddEntry (std::string const &field, double value)
 Adds an entry to the list. More...
 
std::string const & GetErrorMessage (void) const
 Returns the error message. More...
 
std::vector< std::string > const & GetFields (void) const
 Returns entry fields. More...
 
std::vector< double > const & GetValues (void) const
 Returns entry values. More...
 

Detailed Description

Container for error reports.

Definition at line 14 of file universal_error.hpp.

Constructor & Destructor Documentation

◆ UniversalError() [1/2]

UniversalError::UniversalError ( std::string const &  err_msg)
explicit

Class constructor.

Parameters
err_msgError message

Definition at line 5 of file universal_error.cpp.

◆ UniversalError() [2/2]

UniversalError::UniversalError ( const UniversalError origin)

Copy constructor.

Parameters
originOriginal

Definition at line 10 of file universal_error.cpp.

Member Function Documentation

◆ AddEntry()

void UniversalError::AddEntry ( std::string const &  field,
double  value 
)

Adds an entry to the list.

Parameters
fieldEntry title
valueValue of entry

Definition at line 20 of file universal_error.cpp.

Here is the caller graph for this function:

◆ Append2ErrorMessage()

void UniversalError::Append2ErrorMessage ( std::string const &  msg)

Appends std::string to the error message.

Parameters
msgMessage to append

Definition at line 15 of file universal_error.cpp.

◆ GetErrorMessage()

string const & UniversalError::GetErrorMessage ( void  ) const

Returns the error message.

Returns
Error message

Definition at line 27 of file universal_error.cpp.

Here is the caller graph for this function:

◆ GetFields()

vector< string > const & UniversalError::GetFields ( void  ) const

Returns entry fields.

Returns
Textual fields

Definition at line 32 of file universal_error.cpp.

Here is the caller graph for this function:

◆ GetValues()

vector< double > const & UniversalError::GetValues ( void  ) const

Returns entry values.

Returns
Numerical values

Definition at line 37 of file universal_error.cpp.

Here is the caller graph for this function:

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