{
std::string baseMsg = std::string("Level ") +
boost::lexical_cast<std::string>(level) +
std::string(" assertion violation\n") +
#if defined(NEKTAR_DEBUG) || defined(NEKTAR_FULLDEBUG)
std::string("Where : ") + boost::lexical_cast<std::string>(routine) + std::string("[") + boost::lexical_cast<std::string>(lineNumber) + std::string("]\n") + std::string("Message : ") +
#endif
msg;
switch(type)
{
{
(*outStream) << "Fatal : " << baseMsg << std::endl;
}
else
{
std::cerr << std::endl << "Fatal : " << baseMsg << std::endl;
}
throw NekError(baseMsg);
break;
{
(*outStream) << "Warning: " << baseMsg << std::endl;
}
else
{
std::cerr << "Warning: " << baseMsg << std::endl;
}
break;
default:
std::cerr << "Unknown warning type: " << baseMsg << std::endl;
}
}