C++: How do I know what exception in catch with ellipsis

95 views Asked by At

On Linux environment using g++ 4.9.2 compiler, in a C++ code, I have try .. catch block, as below:

try {
// some code
}
catch (ExceptionCode &ex) 
{
  // ExceptionCode type of exception
}
catch (...) {
  // how do I know which exception code so that I may check who did throw
}

Clue?

0

There are 0 answers