You are viewing a single comment's thread. Return to all comments →
try { cout<<Server::compute(A,B)<<endl; } catch (invalid_argument ex) { cout<<"Exception: "<<ex.what()<<endl; }catch(bad_alloc ex){ cout<<"Not enough memory"<<endl; }catch(exception& ex){ cout<<"Exception: "<<ex.what()<<endl; }catch(...) { cout<<"Other Exception"<<endl; }
Seems like cookies are disabled on this browser, please enable them to open this website
Exceptional Server
You are viewing a single comment's thread. Return to all comments →