Logo
Reference manual - version ored_version
StructuredModelErrorMessage Class Reference

Utility class for Structured Model errors. More...

#include <ored/model/structuredmodelerror.hpp>

Inheritance diagram for StructuredModelErrorMessage:

Public Member Functions

 StructuredModelErrorMessage (const std::string &exceptionType, const std::string &exceptionWhat, const std::string &contextId)
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 >())
std::string msg () const override
 return a std::string for the log file
Public Member Functions inherited from JSONMessage
void log () const
 generate Boost log record to pass to corresponding sinks
const std::string json () const
 create JSON-like output from the data
void set (const std::string &key, const QuantLib::ext::any &value)

Additional Inherited Members

Public Types inherited from StructuredMessage
enum class  Category { Error , Warning , Unknown }
enum class  Group {
  Analytics , Configuration , Model , Curve ,
  Convention , Trade , Fixing , Logging ,
  ReferenceData , Input , Unknown
}
Static Public Attributes inherited from StructuredMessage
static constexpr const char * name = "StructuredMessage"
Protected Member Functions inherited from StructuredMessage
void emitLog () const override
 generate Boost log record to pass to corresponding sinks
void addSubFields (const std::map< std::string, std::string > &)
Static Protected Member Functions inherited from JSONMessage
static std::string jsonify (const QuantLib::ext::any &)
 generate Boost log record - this method is called by log()
Protected Attributes inherited from JSONMessage
std::map< std::string, QuantLib::ext::any > data_
bool logged_ = false

Detailed Description

Utility class for Structured Model errors.