dune-vtk 2.8
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
errors.hh File Reference

Macro for wrapping error checks and throwing exceptions. More...

#include <dune/common/exceptions.hh>

Go to the source code of this file.

Classes

class  Dune::VtkError
 

Namespaces

namespace  Dune
 

Macros

#define VTK_ASSERT_MSG(cond, text)
 check if condition cond holds; otherwise, throw a VtkError with a message. More...
 
#define VTK_ASSERT(cond)
 check if condition cond holds; otherwise, throw a VtkError. More...
 

Detailed Description

Macro for wrapping error checks and throwing exceptions.

Macro Definition Documentation

◆ VTK_ASSERT

#define VTK_ASSERT (   cond)
Value:
do { \
if (!(cond)) \
DUNE_THROW(Dune::VtkError, #cond); \
} while (false)
Definition: errors.hh:12

check if condition cond holds; otherwise, throw a VtkError.

◆ VTK_ASSERT_MSG

#define VTK_ASSERT_MSG (   cond,
  text 
)
Value:
do { \
if (!(cond)) \
DUNE_THROW(Dune::VtkError, text); \
} while (false)

check if condition cond holds; otherwise, throw a VtkError with a message.