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
Post a Comment