dune-vtk 2.12
Loading...
Searching...
No Matches
errors.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
3#pragma once
4
6
12namespace Dune::Vtk {
13
14class VtkError : public Exception {};
15
16}
17
21#define VTK_ASSERT_MSG(cond, text) \
22 do { \
23 if (!(cond)) \
24 DUNE_THROW(Dune::Vtk::VtkError, text); \
25 } while (false)
26
27
31#define VTK_ASSERT(cond) \
32 do { \
33 if (!(cond)) \
34 DUNE_THROW(Dune::Vtk::VtkError, #cond); \
35 } while (false)
Definition datacollector.hh:19
Definition errors.hh:14