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