Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/ElmerGUI/netgen/libsrc/general/ngexception.hpp
3206 views
1
#ifndef FILE_NGEXCEPTION
2
#define FILE_NGEXCEPTION
3
4
/**************************************************************************/
5
/* File: ngexception.hpp */
6
/* Author: Joachim Schoeberl */
7
/* Date: 16. Jan. 2002 */
8
/**************************************************************************/
9
10
11
/// Base class for all ng exceptions
12
class NgException
13
{
14
/// verbal description of exception
15
string what;
16
public:
17
///
18
NgException (const string & s);
19
///
20
virtual ~NgException ();
21
22
/// append string to description
23
void Append (const string & s);
24
// void Append (const char * s);
25
26
/// verbal description of exception
27
const string & What() const { return what; }
28
};
29
30
#endif
31
32