Exception not caught in try catch block

前端 未结 5 906
太阳男子
太阳男子 2021-01-13 13:20

I do a simple throw \"TEST THROW\" and it isn\'t caught in my catch (std::exception& e). Is it because I\'m catching an std::exception& e?

5条回答
  •  耶瑟儿~
    2021-01-13 13:28

    This also may happen when you throw an exception of a an inherted type but the inhertence is private

提交回复
热议问题