mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
d4a2d4c87b
Also derive NgException from std::exception to print the error message in Python / on the command line.
34 lines
701 B
C++
34 lines
701 B
C++
/**************************************************************************/
|
|
/* File: ngexception.cpp */
|
|
/* Author: Joachim Schoeberl */
|
|
/* Date: 16. Jan. 02 */
|
|
/**************************************************************************/
|
|
|
|
#include <myadt.hpp>
|
|
|
|
namespace netgen
|
|
{
|
|
//using namespace netgen;
|
|
|
|
|
|
|
|
NgException :: NgException (const string & s)
|
|
: m_what(s)
|
|
{
|
|
;
|
|
}
|
|
|
|
|
|
NgException :: ~NgException ()
|
|
{
|
|
;
|
|
}
|
|
|
|
/// append string to description
|
|
void NgException :: Append (const string & s)
|
|
{
|
|
m_what += s;
|
|
}
|
|
|
|
}
|