mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
31 lines
835 B
C++
31 lines
835 B
C++
|
#ifndef FILE_NGEXCEPTION
|
||
|
#define FILE_NGEXCEPTION
|
||
|
|
||
|
/**************************************************************************/
|
||
|
/* File: ngexception.hpp */
|
||
|
/* Author: Joachim Schoeberl */
|
||
|
/* Date: 16. Jan. 2002 */
|
||
|
/**************************************************************************/
|
||
|
|
||
|
|
||
|
/// Base class for all ng exceptions
|
||
|
class NgException
|
||
|
{
|
||
|
/// verbal description of exception
|
||
|
string what;
|
||
|
public:
|
||
|
///
|
||
|
NgException (const string & s);
|
||
|
///
|
||
|
virtual ~NgException ();
|
||
|
|
||
|
/// append string to description
|
||
|
void Append (const string & s);
|
||
|
// void Append (const char * s);
|
||
|
|
||
|
/// verbal description of exception
|
||
|
const string & What() const { return what; }
|
||
|
};
|
||
|
|
||
|
#endif
|