lemAutoRun
1.0
|
#include <PErrorHandler.h>
Public Slots | |
void | HandleErrors (int noOfErrors, int idx, int errorNo, int line, QString errorMsg) |
Signals | |
void | Terminate () |
emitted in case a too severe error occured. More... | |
Public Member Functions | |
PErrorHandler () | |
~PErrorHandler () | |
Private Member Functions | |
void | CheckForAlarm (int errorNo, QString errorMsg) |
void | CheckErrorNo (int errorNo) |
Private Attributes | |
int | fNoOfErrors |
int | fErrCount |
Definition at line 28 of file PErrorHandler.h.
PErrorHandler::PErrorHandler | ( | ) |
Constructor
Definition at line 37 of file PErrorHandler.cpp.
PErrorHandler::~PErrorHandler | ( | ) |
Destructor
Definition at line 49 of file PErrorHandler.cpp.
|
private |
Checks if some special action needs to take place.
errorNo | error number |
Definition at line 152 of file PErrorHandler.cpp.
References LAR_AUTO_RUN_DISABLED, LAR_BPVY_NO_RESPONSE, LAR_FATAL, LAR_FIELD_NOT_REACHED, LAR_FOM_CURRENT_NOT_REACHED, LAR_FUG_NO_RESPONSE, LAR_INPUT_FILE_NOT_EXISTING, LAR_INPUT_FILE_READ_ERROR, LAR_INVALID_CMD, LAR_LOST_NETWORK_CONNECTION, LAR_LS_INPUT_NONSENSE, LAR_LS_TEMP_NOT_STABLE, LAR_MIDAS_CANNOT_START_RUN, LAR_MIDAS_CONNECTION_FAILED, LAR_MIDAS_DEVICE_NOT_REMOTE, LAR_MIDAS_FE_NOT_RUNNING, LAR_MIDAS_KEY_FAILURE, LAR_MIDAS_NO_RUN_TRANSITION, LAR_MIDAS_ODB_FAILURE, LAR_MIDAS_READBACK_FAILURE, LAR_OUT_OF_MEMORY, LAR_OUTPUT_FILE_WRITE_ERROR, LAR_RECIEVED_SHUTDOWN_CMD, LAR_SAMPLE_HV_NOT_REACHED, LAR_XML_ERROR, LAR_XML_EXCEPTION, LAR_XML_FATAL, LAR_XML_FILE_MISSING, LAR_XML_INIT_ERROR, LAR_XML_MISSING_ENTRY, LAR_XML_OUT_OF_MEMORY, LAR_XML_UNEXPECTED_EXCEPTION, and LAR_XML_WARNING.
|
private |
Checks if an alarm needs to be placed.
errorNo | error number |
errorMsg | error message for the alarm |
Definition at line 97 of file PErrorHandler.cpp.
References LAR_AUTO_RUN_DISABLED, LAR_BPV_CLOSED_AT_RUN_START, LAR_BPVY_NO_RESPONSE, LAR_FIELD_NOT_REACHED, LAR_FOM_CURRENT_NOT_REACHED, LAR_FORCED_RA_OFF, LAR_FUG_NO_RESPONSE, LAR_LOST_NETWORK_CONNECTION, LAR_LS_TEMP_NOT_STABLE, LAR_MIDAS_CANNOT_START_RUN, LAR_MIDAS_CONNECTION_FAILED, LAR_MIDAS_DEVICE_NOT_REMOTE, LAR_MIDAS_FE_NOT_RUNNING, LAR_MIDAS_KEY_FAILURE, LAR_MIDAS_NO_RUN_TRANSITION, LAR_MIDAS_ODB_FAILURE, LAR_MIDAS_READBACK_FAILURE, LAR_OMEGA_TEMP_NOT_STABLE, LAR_OUT_OF_MEMORY, LAR_RA_HV_OFF_AT_RUN_START, LAR_SAMPLE_HV_NOT_REACHED, LAR_STOP_STOP_NONSENSE, LAR_XML_ERROR, LAR_XML_EXCEPTION, LAR_XML_FATAL, LAR_XML_FILE_MISSING, LAR_XML_INIT_ERROR, LAR_XML_OUT_OF_MEMORY, and LAR_XML_UNEXPECTED_EXCEPTION.
|
slot |
Prints error messages. At the moment only sent to the MIDAS message system.
noOfErrors | total number of errors encoutered so far |
idx | current error count index |
errorNo | error number |
line | line number where the error occured in the user auto run sequence |
errorMsg | 'clear text' error message |
Definition at line 65 of file PErrorHandler.cpp.
References LAR_AUTO_RUN_DISABLED, LAR_MSG, and LAR_MSG_NO_LINE_NO.
|
signal |
emitted in case a too severe error occured.
|
private |
Definition at line 44 of file PErrorHandler.h.
|
private |
Definition at line 43 of file PErrorHandler.h.