::Poco::Util::SystemConfiguration::setRaw

Discussion of ideas for features and new projects based on POCO.
elemings
Posts: 20
Joined: 02 Nov 2010, 18:17

::Poco::Util::SystemConfiguration::setRaw

Postby elemings » 07 Oct 2011, 22:20

155 void SystemConfiguration::setRaw(const std::string& key, const std::string& value)
156 {
157 throw Poco::InvalidAccessException("Attempt to modify a system property", key);
158 }

This code should check the key to make sure it actually exists before throwing this exception. What's wrong with adding keys?

guenter
Posts: 1192
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: ::Poco::Util::SystemConfiguration::setRaw

Postby guenter » 03 Dec 2011, 17:26

SystemConfiguration is strictly read-only. Okay, the exception message can be a bit misleading...


Return to “Wishlist”

Who is online

Users browsing this forum: No registered users and 2 guests

cron