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";
94 Context[
"waretype"] =
"observer";
96 Context[
"waretype"] =
"simulator";
98 Context[
"wareid"] = ID;
Definition: WareException.hpp:56
static openfluid::base::ExceptionContext computeContext(const WareType WType, const WareID_t &ID, const openfluid::base::SimulationStatus::SimulationStage Stage)
Definition: WareException.hpp:108
ExceptionContext & addTimeIndex(const std::uint64_t &TimeIndex)
Definition: ExceptionContext.hpp:85
ExceptionContext & addStage(const std::string &StageStr)
Definition: ExceptionContext.hpp:123
static std::string getStageAsString(const SimulationStage &Stage)
Definition: ExceptionContext.hpp:53
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:126
std::string WareID_t
Definition: TypeDefs.hpp:49
SimulationStage
Definition: SimulationStatus.hpp:59
WareType
Definition: TypeDefs.hpp:60
Definition: ApplicationException.hpp:47
std::uint64_t TimeIndex_t
Definition: TypeDefs.hpp:181
static openfluid::base::ExceptionContext computeContext(const WareType WType, const WareID_t &ID)
Definition: WareException.hpp:84
#define OPENFLUID_API
Definition: dllexport.hpp:86
WareException(const openfluid::base::ExceptionContext &Context, const std::string &Msg)
Definition: WareException.hpp:72
Definition: Exception.hpp:52
void buildFullMessage()
Definition: WareException.hpp:61