Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Poco/Exception.h>
- int main(int argc, char **argv)
- {
- //*
- cout << "Testing throwing/catching Poco Exception" << endl;
- try {
- throw Poco::Exception("test");
- } catch(Poco::Exception &exc) {
- cout << "caught" << endl;
- }
- //*/
- cout << "Testing throwing/catching std exception" << endl;
- try {
- throw std::exception();
- } catch(std::exception &exc) {
- cout << "caught" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement