mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 19:13:30 +01:00

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).