Logo
Reference manual - version ored_version
Public Member Functions | List of all members
StructuredCurveErrorMessage Class Reference

Utility class for Structured Curve errors, contains the curve ID. More...

#include <ored/marketdata/structuredcurveerror.hpp>

+ Inheritance diagram for StructuredCurveErrorMessage:

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from StructuredMessage
enum class  Category { Error , Warning , Unknown }
 
enum class  Group {
  Analytics , Configuration , Model , Curve ,
  Trade , Fixing , Logging , ReferenceData ,
  Unknown
}
 
- Static Public Attributes inherited from StructuredMessage
static constexpr const char * name = "StructuredMessage"
 
- Protected Member Functions inherited from StructuredMessage
void addSubFields (const std::map< std::string, std::string > &)
 
- 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

Utility class for Structured Curve errors, contains the curve ID.