You are viewing a single comment's thread. Return to all comments →
try { int res = Server::compute(A, B); if((A % B) == A) out_of_range("Accessing out of range"); } catch(bad_alloc& e) { cout << "Not enough memory " << endl; } catch(exception& e) { cout << "Exception: " << e.what() << endl; } catch(...) { cout << "Other Exceptions " << endl; }
} cout << Server::getLoad() << 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 →
try { int res = Server::compute(A, B); if((A % B) == A) out_of_range("Accessing out of range"); } catch(bad_alloc& e) { cout << "Not enough memory " << endl; } catch(exception& e) { cout << "Exception: " << e.what() << endl; } catch(...) { cout << "Other Exceptions " << endl; }