44 char*
const extype = abi::__cxa_demangle (
typeid ( e ).name(),
nullptr,
nullptr, &status );
47 std::cerr <<
"An exception of type " << extype <<
" occured while " << location << std::endl;
51 std::cerr <<
"An exception of (mangled) type " <<
typeid ( e ).name() <<
" occured while instanciating EpicsAccessManager." << std::endl;
53 std::cerr <<
"Error Message: " << e.what() << std::endl;
57 std::cerr <<
"Exiting gracefully..." << std::endl;
62 std::cerr <<
"Dazzled and confused, but trying to continue..." << std::endl;
68 std::cerr <<
"An unknown exception occured while " << location << std::endl;
71 std::cerr <<
"Exiting gracefully..." << std::endl;
76 std::cerr <<
"Dazzled and confused, but trying to continue..." << std::endl;
Namespace for Alarm Notifications application.
#define noexcept
Allow using the noexcept keyword with GCC < 4.6.
void ExceptionHandler(std::exception &e, std::string location, const bool quit=false) noexcept
Generic exception handler for known exceptions.
Generic functions for exception handling.