As already mentioned, he catches everything. From what I saw, this is mostly used when you cannot determine the actual exception that was thrown. And this can happen if this exception is a Structured exception that is not C ++. For example, if you try to access some invalid memory location. Itโs usually not a good habit to use these catch everyone. You don't have a (portable) way to get the stack trace, and you don't know anything about the exception.
Using this for reasons other than examples or very trivial cases may indicate that the author is trying to hide the instability of the program without worrying about unrecognized exceptions. If you ever encounter such a thing, you better allow the program to crash and create a crash dump, which you can analyze later. Or use a structured exception handler (if you use VS, you donโt know how this is done for other compilers).
source share