nederror.h File Reference

#include <vector>
#include <exception>
#include <stdexcept>
#include <string>
#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 Documentation

#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)

Enumeration Type Documentation

Enumerator:
NED_SEVERITY_INFO 
NED_SEVERITY_WARNING 
NED_SEVERITY_ERROR 

Function Documentation

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.

Generated on Fri Mar 7 17:19:43 2014 for OMNeT++ NEDXML by  doxygen 1.6.3