File error_info.hpp¶
File List > backends > cxx > include > zmbt > model > error_info.hpp
Go to the documentation of this file
#ifndef ZMBT_MODEL_ERROR_INFO_HPP_
#define ZMBT_MODEL_ERROR_INFO_HPP_
#include <boost/json.hpp>
namespace zmbt
{
struct ErrorInfo
{
boost::json::string type;
boost::json::string what;
boost::json::string context;
boost::json::value to_json() const
{
return boost::json::object {
{"type" , type },
{"what" , what },
{"context", context},
};
}
};
} // namespace zmbt
#endif