3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
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 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
24#ifndef DUMUX_EXCEPTIONS_HH
25#define DUMUX_EXCEPTIONS_HH
26
27#include <dune/common/exceptions.hh>
28
29#include <string>
30
31namespace Dumux {
38class NumericalProblem : public Dune::Exception
39{
40public:
41 // copy constructor
43 : Dune::Exception(v)
44 {}
45
46 // default constructor
48 {}
49
50 // constructor with error message
51 explicit NumericalProblem(const std::string &s)
52 { this->message(s); }
53};
54
59class ParameterException : public Dune::Exception
60{
61public:
62 // copy constructor
64 : Dune::Exception(v)
65 {}
66
67 // default constructor
69 {}
70
71 // constructor with error message
72 explicit ParameterException(const std::string &s)
73 { this->message(s); }
74};
75
76} // namespace Dumux
77
78#endif
Definition: adapt.hh:29
Definition: common/pdesolver.hh:36
Exception thrown if a fixable numerical problem occurs.
Definition: exceptions.hh:39
NumericalProblem()
Definition: exceptions.hh:47
NumericalProblem(const NumericalProblem &v)
Definition: exceptions.hh:42
NumericalProblem(const std::string &s)
Definition: exceptions.hh:51
Exception thrown if a run-time parameter is not specified correctly.
Definition: exceptions.hh:60
ParameterException(const ParameterException &v)
Definition: exceptions.hh:63
ParameterException(const std::string &s)
Definition: exceptions.hh:72
ParameterException()
Definition: exceptions.hh:68