Skip to content
Discussion options

You must be logged in to vote

Basically it's working, but I'm not sure if I'm collecting all types of exceptions?

In short: no.

  1. Also related to your other question: a C++ catch will only receive C++ exceptions, not all SEH exceptions. If you want to handle SEH exceptions, which includes hard faults like memory access errors and C++ exceptions, you need to use the SEH primitives.
  2. You will only catch exceptions in the type hierarchy of std::exception, thus guaranteeing a what() interface. In C++, you can throw almost anything (besides incomplete or abstract types), so even if you only consider catching C++ exceptions, you will ignore all that aren't a std::exception.

for instance the following is not captured as st…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@maxp1256
Comment options

@supervacuus
Comment options

@maxp1256
Comment options

Answer selected by supervacuus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1229 on May 08, 2025 11:28.