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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -