netgen/libsrc/general/ngexception.hpp

34 lines
856 B
C++
Raw Normal View History

2009-01-13 04:40:13 +05:00
#ifndef FILE_NGEXCEPTION
#define FILE_NGEXCEPTION
/**************************************************************************/
/* File: ngexception.hpp */
/* Author: Joachim Schoeberl */
/* Date: 16. Jan. 2002 */
/**************************************************************************/
2009-07-20 14:36:36 +06:00
namespace netgen
{
2009-01-13 04:40:13 +05:00
/// 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; }
};
2009-07-20 14:36:36 +06:00
}
2009-01-13 04:40:13 +05:00
#endif