exception type thrown by ip::address::from_string()
Hi all, I've started working with the Boost ASIO library and came across a problem. I'm trying to catch exceptions thrown by boost::asio::ip::address::from_string(const std::string & str) but I don't know what the type of the exception that I should catch is. I can find no mention of this in the boost reference. Any help would be appreciated. Many thanks, Alan _______________________________________________________ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com
I've started working with the Boost ASIO library and came across a problem. I'm trying to catch exceptions thrown by boost::asio::ip::address::from_string(const std::string & str) but I don't know what the type of the exception that I should catch is. I can find no mention of this in the boost reference. Any help would be appreciated.
As you can see, this function also has overloads that take boost::system::error_code by reference: http://www.boost.org/doc/libs/1_44_0/doc/html/boost_asio/reference/ip__addre... Generally, if a function in asio has overloads with and without such a parameter, the former "returns" an error in the parameter, and the latter throws boost::system::system_error instead. For most functions it's mentioned explicitly, like here: http://www.boost.org/doc/libs/1_44_0/doc/html/boost_asio/reference/basic_str... But from_string() reference really lacks this point for some reason.
participants (2)
-
Alan Vella
-
Igor R