c++ - cpp: catch exception with ellipsis and see the information -


i know can catch "all exceptions" , print exception

try {     //some code... }catch(const std::exception& e) {    cout << e.what(); } 

but exceptions derived std::exception. wondering if there way information ellipsis catch

try {     //some code... }catch(...) {    // ?? } 

if mechanism same ellipsis functions should able casting argument of va_list , trying call what() method.

i haven't tried yet if knows way i'd excited know how.

sorry, can't that. can access exception object in catch block specific exception type.


Comments

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -