#include <vector>
#include <exception>
#include <stdexcept>
#include "nedxmldefs.h"
Go to the source code of this file.
Classes | |
| class | NEDErrorStore |
| Stores error messages. More... | |
Defines | |
| #define | INTERNAL_ERROR0(context, msg) NEDInternalError(__FILE__,__LINE__,context,msg) |
| #define | INTERNAL_ERROR1(context, msg, arg1) NEDInternalError(__FILE__,__LINE__,context,msg,arg1) |
| #define | INTERNAL_ERROR2(context, msg, arg1, arg2) NEDInternalError(__FILE__,__LINE__,context,msg,arg1,arg2) |
| #define | INTERNAL_ERROR3(context, msg, arg1, arg2, arg3) NEDInternalError(__FILE__,__LINE__,context,msg,arg1,arg2,arg3) |
Enumerations | |
| enum | NEDErrorSeverity { NED_SEVERITY_INFO, NED_SEVERITY_WARNING, NED_SEVERITY_ERROR } |
Functions | |
| void | NEDInternalError (const char *file, int line, NEDElement *context, const char *messagefmt,...) |
| #define INTERNAL_ERROR0 | ( | context, | |||
| msg | ) | NEDInternalError(__FILE__,__LINE__,context,msg) |
| #define INTERNAL_ERROR1 | ( | context, | |||
| msg, | |||||
| arg1 | ) | NEDInternalError(__FILE__,__LINE__,context,msg,arg1) |
| #define INTERNAL_ERROR2 | ( | context, | |||
| msg, | |||||
| arg1, | |||||
| arg2 | ) | NEDInternalError(__FILE__,__LINE__,context,msg,arg1,arg2) |
| #define INTERNAL_ERROR3 | ( | context, | |||
| msg, | |||||
| arg1, | |||||
| arg2, | |||||
| arg3 | ) | NEDInternalError(__FILE__,__LINE__,context,msg,arg1,arg2,arg3) |
| enum NEDErrorSeverity |
| void NEDInternalError | ( | const char * | file, | |
| int | line, | |||
| NEDElement * | context, | |||
| const char * | messagefmt, | |||
| ... | ||||
| ) |
Called when an internal error occurs.
It prints an appropriate message, then calls abort(). This method is typically used via the INTERNAL_ERROR0()...INTERNAL_ERROR4() macros that add the __FILE__, __LINE__ args implicitly.
1.5.5