Go to the documentation of this file.
86 if (minorErrors > 0) {
88 for (
size_t i = 0; i < minorErrors; ++i) {
89 message +=
"warning: runtime error: \n";
95 wxPostEvent(&
gui_, simEvent);
99 if (fatalErrors > 0) {
101 for (
size_t i = 0; i < fatalErrors; ++i) {
102 message +=
"error: runtime error: \n";
111 wxPostEvent(&
gui_, simEvent);
~ProximRuntimeErrorHandler()
static const wxEventType EVT_SIMULATOR_RUNTIME_WARNING
Runtime warning event.
SimulatorFrontend & frontend_
Simulator frontend to stop when a fatal error occurs.
static const wxEventType EVT_SIMULATOR_RUNTIME_ERROR
Runtime error event.
std::string programErrorReport(RuntimeErrorSeverity severity, std::size_t index)
@ SRE_RUNTIME_ERROR
A fatal runtime error occured in the simulated program.
@ RES_MINOR
Minor runtime error, no abort necessary.
@ RES_FATAL
Fatal runtime error, there is a serious error in the simulated program, thus it makes no sense to go ...
@ SE_RUNTIME_ERROR
Sent when a runtime error is detected in the simulated program.
std::size_t programErrorReportCount(RuntimeErrorSeverity severity)
void clearProgramErrorReports()
virtual void handleEvent()
SimulationEventHandler & eventHandler()
wxEvtHandler & gui_
GUI to send the simulator events to.
ProximRuntimeErrorHandler(SimulatorFrontend &frontend, wxEvtHandler &gui)
void prepareToStop(StopReason reason)