CPPSERV


Home Projects Jobs Clientele Contact

cppserv-cvs


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cppserv.git] Changes to ref refs/heads/master



C++ Servlet Server and C++ Server Pages commit
---------------------------------------------------
New commits:
commit a98f70d601269540e661f7981f247339ada4d855
Author: Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>
Date:   Thu Apr 3 17:29:10 2008 +0300

    Mark all base classes of servlet exception classes as public
    
    By mistake, standard base classes (std::exception-dervied)
    of IllegalArgumentException, IllegalStateException,
    NumberFormatException, and ServletException were not
    marked as public. As a result, the following construct
    didn't work as expected:
    try
    {
    	response.getOutputStream()<<"test";
    	response.setCookie(Cookie("a", "b")); // throws IllegalStateException
    }
    catch (std::exception& e)
    {
    	std::cerr<<"Error: "<<e.what()<<std::endl;
    }
    
    Exception wouldn't be caught, since std::exception was private.


---------------------------------------------------
http://www.total-knowledge.com/progs/cppserv

Authoright © Total Knowledge: 2001-2008