Nektar++
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
ErrorUtil.hpp File Reference
#include <iostream>
#include <stdexcept>
#include <string>
#include <LibUtilities/LibUtilitiesDeclspec.h>
#include <execinfo.h>

Go to the source code of this file.

Classes

class  Nektar::ErrorUtil
 
class  Nektar::ErrorUtil::NekError
 

Namespaces

namespace  Nektar
 

Macros

#define NEKERROR(type, msg)    Nektar::ErrorUtil::Error(type, __FILE__, __LINE__, msg, 0);
 Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode. This level assert is considered code critical, even under optimized compilation.
 
#define ROOTONLY_NEKERROR(type, msg)    Nektar::ErrorUtil::Error(type, __FILE__, __LINE__, msg, 0, true);
 
#define ASSERTL0(condition, msg)
 
#define WARNINGL0(condition, msg)
 
#define ASSERTL1(condition, msg)
 Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode. This level assert is designed for aiding in standard debug (-g) mode.
 
#define WARNINGL1(condition, msg)
 
#define ASSERTL2(condition, msg)
 Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed to provide addition safety checks within the code (such as bounds checking, etc.).
 
#define WARNINGL2(condition, msg)
 

Macro Definition Documentation

◆ ASSERTL0

#define ASSERTL0 (   condition,
  msg 
)
Value:
if (!(condition)) \
{ \
Nektar::ErrorUtil::Error(Nektar::ErrorUtil::efatal, __FILE__, \
__LINE__, msg, 0); \
}

Definition at line 216 of file ErrorUtil.hpp.

218 { \
219 Nektar::ErrorUtil::Error(Nektar::ErrorUtil::efatal, __FILE__, \
220 __LINE__, msg, 0); \
221 }

◆ ASSERTL1

#define ASSERTL1 (   condition,
  msg 
)

Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode. This level assert is designed for aiding in standard debug (-g) mode.

Definition at line 250 of file ErrorUtil.hpp.

◆ ASSERTL2

#define ASSERTL2 (   condition,
  msg 
)

Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed to provide addition safety checks within the code (such as bounds checking, etc.).

Definition at line 273 of file ErrorUtil.hpp.

◆ NEKERROR

#define NEKERROR (   type,
  msg 
)     Nektar::ErrorUtil::Error(type, __FILE__, __LINE__, msg, 0);

Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode. This level assert is considered code critical, even under optimized compilation.

Definition at line 210 of file ErrorUtil.hpp.

◆ ROOTONLY_NEKERROR

#define ROOTONLY_NEKERROR (   type,
  msg 
)     Nektar::ErrorUtil::Error(type, __FILE__, __LINE__, msg, 0, true);

Definition at line 213 of file ErrorUtil.hpp.

◆ WARNINGL0

#define WARNINGL0 (   condition,
  msg 
)
Value:
if (!(condition)) \
{ \
Nektar::ErrorUtil::Error(Nektar::ErrorUtil::ewarning, __FILE__, \
__LINE__, msg, 0); \
}

Definition at line 223 of file ErrorUtil.hpp.

225 { \
226 Nektar::ErrorUtil::Error(Nektar::ErrorUtil::ewarning, __FILE__, \
227 __LINE__, msg, 0); \
228 }

◆ WARNINGL1

#define WARNINGL1 (   condition,
  msg 
)

Definition at line 251 of file ErrorUtil.hpp.

◆ WARNINGL2

#define WARNINGL2 (   condition,
  msg 
)

Definition at line 274 of file ErrorUtil.hpp.