40 #ifndef __OPENFLUID_WARE_WAREEXCEPTION_HPP__ 41 #define __OPENFLUID_WARE_WAREEXCEPTION_HPP__ 62 m_FullMessage = m_Message;
63 m_FullMessage +=
" [" + m_Context.toString() +
"]";
71 const std::string& Msg) :
88 Context[
"source"] =
"ware";
89 Context[
"waretype"] =
"unknown";
92 Context[
"waretype"] =
"observer";
94 Context[
"waretype"] =
"simulator";
96 Context[
"wareid"] = ID;
Definition: Exception.hpp:52
Definition: WareException.hpp:55
static openfluid::base::ExceptionContext computeContext(const WareType WType, const WareID_t &ID, const openfluid::base::SimulationStatus::SimulationStage Stage)
Definition: WareException.hpp:106
static openfluid::base::ExceptionContext computeContext(const WareType WType, const WareID_t &ID)
Definition: WareException.hpp:82
std::string WareID_t
Definition: TypeDefs.hpp:50
static std::string getStageAsString(const SimulationStage &Stage)
ExceptionContext & addStage(const std::string &StageStr)
Definition: ExceptionContext.hpp:120
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:124
Definition: ApplicationException.hpp:47
WareType
Definition: TypeDefs.hpp:62
#define OPENFLUID_API
Definition: dllexport.hpp:87
unsigned long long TimeIndex_t
Definition: DateTime.hpp:62
Definition: ExceptionContext.hpp:53
SimulationStage
Definition: SimulationStatus.hpp:59
ExceptionContext & addTimeIndex(const unsigned long long &TimeIndex)
Definition: ExceptionContext.hpp:82
WareException(const openfluid::base::ExceptionContext &Context, const std::string &Msg)
Definition: WareException.hpp:70
void buildFullMessage()
Definition: WareException.hpp:60