Over a million developers have joined DZone.

Exceptions In C++

·
// description of your code here


catch (std::bad_alloc &e)
      {
            ProgramLogEx(MT_ERROR, __FILE__, __FUNCTION__, "%s", e.what());
            return;
      }
      catch (std::exception &e)
      {
            ProgramLogEx(MT_ERROR, __FILE__, __FUNCTION__, "%s", e.what());
            return;
      }

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}