dune-vtk 2.12
Loading...
Searching...
No Matches
errors.hh File Reference

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

Go to the source code of this file.

Classes

class  Dune::Vtk::VtkError
 

Namespaces

namespace  Dune
 
namespace  Dune::Vtk
 

Macros

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

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::Vtk::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::Vtk::VtkError, text); \
} while (false)

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