20 #ifndef _MBSIM_EVENT_H_
21 #define _MBSIM_EVENT_H_
25 #include <xercesc/dom/DOMElement.hpp>
26 #include <mbxmlutilshelper/dom.h>
45 MBSimError(
const Element *context,
const std::string &mbsim_error_message_)
throw();
51 MBSimError(
const std::string &mbsim_error_message_)
throw();
58 void setContext(
const Element *context);
62 const std::string& getPath()
const {
return path; }
64 const std::vector<MBXMLUtils::EmbedDOMLocator>& getLocationStack()
const {
return locationStack; }
66 virtual const char* what()
const throw();
76 std::vector<MBXMLUtils::EmbedDOMLocator> locationStack;
79 mutable std::string whatMsg;
83 #define THROW_MBSIMERROR(msg) \
84 throw MBSim::MBSimError(this, msg)
basic class of MBSim mainly for plotting
Definition: element.h:58
MBSimError(const Element *context, const std::string &mbsim_error_message_)
constructor
Definition: mbsim_event.cc:30
std::string mbsim_error_message
error message
Definition: mbsim_event.h:72
basic error class for mbsim
Definition: mbsim_event.h:38