mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
1f47c0df2f
Add code (int) to Poco::Exception with default value zero. When throwing exceptions, applications can currently set a custom message. This will add the ability to set a custom code as well, that is specific to the application. This change implements codes for Poco::SocketImpl via the error() method to allow handling of different socket errors based on their actual type (without having to compare their message text).