version 3.8
exceptions.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_EXCEPTIONS_HH
13#define DUMUX_EXCEPTIONS_HH
14
15#include <dune/common/exceptions.hh>
16
17#include <string>
18
19namespace Dumux {
26class NumericalProblem : public Dune::Exception
27{
28public:
29 // copy constructor
31 : Dune::Exception(v)
32 {}
33
34 // default constructor
36 {}
37
38 // constructor with error message
39 explicit NumericalProblem(const std::string &s)
40 { this->message(s); }
41};
42
47class ParameterException : public Dune::Exception
48{
49public:
50 // copy constructor
52 : Dune::Exception(v)
53 {}
54
55 // default constructor
57 {}
58
59 // constructor with error message
60 explicit ParameterException(const std::string &s)
61 { this->message(s); }
62};
63
64} // namespace Dumux
65
66#endif
Exception thrown if a fixable numerical problem occurs.
Definition: exceptions.hh:27
NumericalProblem()
Definition: exceptions.hh:35
NumericalProblem(const NumericalProblem &v)
Definition: exceptions.hh:30
NumericalProblem(const std::string &s)
Definition: exceptions.hh:39
Exception thrown if a run-time parameter is not specified correctly.
Definition: exceptions.hh:48
ParameterException(const ParameterException &v)
Definition: exceptions.hh:51
ParameterException(const std::string &s)
Definition: exceptions.hh:60
ParameterException()
Definition: exceptions.hh:56
Definition: adapt.hh:17
Definition: common/pdesolver.hh:24