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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -