Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
StructuredAnalyticsErrorMessage Class Reference

#include <orea/app/structuredanalyticserror.hpp>

+ Inheritance diagram for StructuredAnalyticsErrorMessage:
+ Collaboration diagram for StructuredAnalyticsErrorMessage:

Public Member Functions

 StructuredAnalyticsErrorMessage (const std::string &analyticType, const std::string &exceptionType, const std::string &exceptionWhat, const std::map< std::string, std::string > &subFields={})
 
- Public Member Functions inherited from StructuredMessage
 StructuredMessage (const Category &category, const Group &group, const std::string &message, const std::map< std::string, std::string > &subFields=std::map< std::string, std::string >())
 
 StructuredMessage (const Category &category, const Group &group, const std::string &message, const std::pair< std::string, std::string > &subField=std::pair< std::string, std::string >())
 
virtual ~StructuredMessage ()
 
std::string msg () const
 
void emitLog () const
 
- Public Member Functions inherited from JSONMessage
virtual ~JSONMessage ()
 
virtual std::string msg () const=0
 
void log () const
 
const std::string json () const
 
void set (const std::string &key, const boost::any &value)
 

Additional Inherited Members

- Public Types inherited from StructuredMessage
enum  Category
 
enum  Group
 
- Static Public Attributes inherited from StructuredMessage
static constexpr const char * name
 
- Protected Member Functions inherited from StructuredMessage
void addSubFields (const std::map< std::string, std::string > &)
 
virtual void emitLog () const=0
 
- Static Protected Member Functions inherited from JSONMessage
static std::string jsonify (const boost::any &)
 
- Protected Attributes inherited from JSONMessage
std::map< std::string, boost::any > data_
 

Detailed Description

Definition at line 31 of file structuredanalyticserror.hpp.

Constructor & Destructor Documentation

◆ StructuredAnalyticsErrorMessage()

StructuredAnalyticsErrorMessage ( const std::string &  analyticType,
const std::string &  exceptionType,
const std::string &  exceptionWhat,
const std::map< std::string, std::string > &  subFields = {} 
)

Definition at line 33 of file structuredanalyticserror.hpp.

35 {})
37 Category::Error, Group::Analytics, exceptionWhat,
38 std::map<std::string, std::string>({{"exceptionType", exceptionType}, {"analyticType", analyticType}})) {
39
40 addSubFields(subFields);
41 }
void addSubFields(const std::map< std::string, std::string > &)
StructuredMessage(const Category &category, const Group &group, const std::string &message, const std::map< std::string, std::string > &subFields=std::map< std::string, std::string >())