40#ifndef __OPENFLUID_WARE_WAREEXCEPTION_HPP__
41#define __OPENFLUID_WARE_WAREEXCEPTION_HPP__
63 m_FullMessage = m_Message;
64 m_FullMessage +=
" [" + m_Context.toString() +
"]";
73 const std::string& Msg) :
90 Context[
"source"] =
"ware";
91 Context[
"waretype"] =
"unknown";
93 if (WType == WareType::OBSERVER)
95 Context[
"waretype"] =
"observer";
97 else if (WType == WareType::SIMULATOR)
99 Context[
"waretype"] =
"simulator";
102 Context[
"wareid"] = ID;
Definition ExceptionContext.hpp:54
ExceptionContext & addStage(const std::string &StageStr)
Definition ExceptionContext.hpp:123
ExceptionContext & addTimeIndex(const std::uint64_t &TimeIndex)
Definition ExceptionContext.hpp:85
Definition Exception.hpp:53
static std::string getStageAsString(const SimulationStage &Stage)
SimulationStage
Definition SimulationStatus.hpp:59
Definition WareException.hpp:57
static openfluid::base::ExceptionContext computeContext(const WareType WType, const WareID_t &ID, const openfluid::base::SimulationStatus::SimulationStage Stage, openfluid::core::TimeIndex_t TimeIndex)
Definition WareException.hpp:130
WareException(const openfluid::base::ExceptionContext &Context, const std::string &Msg)
Definition WareException.hpp:72
void buildFullMessage()
Definition WareException.hpp:61
static openfluid::base::ExceptionContext computeContext(const WareType WType, const WareID_t &ID)
Definition WareException.hpp:84
static openfluid::base::ExceptionContext computeContext(const WareType WType, const WareID_t &ID, const openfluid::base::SimulationStatus::SimulationStage Stage)
Definition WareException.hpp:112
#define OPENFLUID_API
Definition dllexport.hpp:86
std::uint64_t TimeIndex_t
Definition TypeDefs.hpp:298
WareType
Definition TypeDefs.hpp:61
std::string WareID_t
Definition TypeDefs.hpp:49
Definition ApplicationException.hpp:47