A few versions ago the library was standardized to only throw websocketpp::exception. Not all example code was updated.