adjust example exception behavior to match latest spec

This commit is contained in:
Peter Thorson
2014-12-08 18:56:28 -05:00
parent 6578c5852e
commit 0a47a9a78c
7 changed files with 7 additions and 33 deletions
+1 -5
View File
@@ -132,11 +132,7 @@ int main(int argc, char * argv[]) {
}
}
} catch (const std::exception & e) {
} catch (websocketpp::exception const & e) {
std::cout << "exception: " << e.what() << std::endl;
} catch (websocketpp::lib::error_code e) {
std::cout << "error code: " << e.message() << std::endl;
} catch (...) {
std::cout << "other exception" << std::endl;
}
}