26#include <boost/algorithm/string.hpp>
37 const std::string& exceptionWhat)
40 std::map<std::string, std::string>(
41 {{
"exceptionType", exceptionType}, {
"tradeId", trade->id()}, {
"tradeType", trade->tradeType()}})) {}
44 const std::string& exceptionType,
const std::string& exceptionWhat)
46 std::map<std::string, std::string>(
47 {{
"exceptionType", exceptionType}, {
"tradeId", tradeId}, {
"tradeType", tradeType}})) {}
Utility class for Structured Trade errors, contains the Trade ID and Type.
StructuredTradeErrorMessage(const QuantLib::ext::shared_ptr< ore::data::Trade > &trade, const std::string &exceptionType, const std::string &exceptionWhat)
StructuredTradeErrorMessage(const std::string &tradeId, const std::string &tradeType, const std::string &exceptionType, const std::string &exceptionWhat)
Classes and functions for log message handling.
Serializable Credit Default Swap.
base trade data model and serialization