* \ingroup module_utility
*/
typedef boost::error_info<struct errinfo_message_, ErrorMessage>
- errinfo_message;
+ errinfo_message;
ErrorMessage::ErrorMessage(const std::string &text)
: text_(text)
* \ingroup module_utility
*/
typedef boost::error_info<struct errinfo_message_, internal::NestedExceptionList>
- errinfo_nested_exceptions;
+ errinfo_nested_exceptions;
-} // namespace
+} // namespace
/********************************************************************
* GromacsException
}
}
-} // namespace
+} // namespace
void printFatalErrorMessage(FILE *fp, const std::exception &ex)
{
- const char *title = "Unknown exception";
- bool bPrintType = false;
- const GromacsException *gmxEx = dynamic_cast<const GromacsException *>(&ex);
+ const char *title = "Unknown exception";
+ bool bPrintType = false;
+ const GromacsException *gmxEx = dynamic_cast<const GromacsException *>(&ex);
// TODO: Treat more of the standard exceptions
if (gmxEx != NULL)
{
}
else if (dynamic_cast<const std::logic_error *>(&ex) != NULL)
{
- title = "Standard library logic error (bug)";
+ title = "Standard library logic error (bug)";
bPrintType = true;
}
else if (dynamic_cast<const std::runtime_error *>(&ex) != NULL)
{
- title = "Standard library runtime error (possible bug)";
+ title = "Standard library runtime error (possible bug)";
bPrintType = true;
}
else
// We can't call get_error_info directly on ex since our internal boost
// needs to be compiled with BOOST_NO_RTTI. So we do the dynamic_cast
// here instead.
- const char *const *funcPtr = NULL;
- const char *const *filePtr = NULL;
- const int *linePtr = NULL;
+ const char *const *funcPtr = NULL;
+ const char *const *filePtr = NULL;
+ const int *linePtr = NULL;
const boost::exception *boostEx = dynamic_cast<const boost::exception *>(&ex);
if (boostEx != NULL)
{