Compiler Warning (level 4) C4673
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Warning (level 4) C4673

Error Message

throwing 'identifier' the following types will not be considered at the catch site

A throw object cannot be handled in the catch block. Each type that cannot be handled is listed in the error output immediately following the line containing this warning. Each unhandled type has its own warning. Read the warning for each specific type for more information.

The following sample generates C4673:

// C4673.cpp
// compile with: /EHsc /W4
class Base {
   char * m_chr;
   Base() {
      m_chr = 0;

   ~Base() {
         delete m_chr;

class Derv : private Base {
   Derv() {}
   ~Derv() {}

int main() {
   try {
      Derv D1;
      // delete previous line, uncomment the next line to resolve
      // Base D1;
      throw D1;   // C4673

   catch(...) {}
© 2015 Microsoft