[Boost-bugs] [Boost C++ Libraries] #4019: improve interprocess exception what() string

Subject: [Boost-bugs] [Boost C++ Libraries] #4019: improve interprocess exception what() string
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-15 22:00:41


#4019: improve interprocess exception what() string
-----------------------------------------------------+----------------------
 Reporter: Marty Olevitch <marty@…> | Owner: igaztanaga
     Type: Feature Requests | Status: new
Milestone: Boost 1.43.0 | Component: interprocess
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
-----------------------------------------------------+----------------------
 Dear Ion,

 I am planning to use your message_queues in new project and like it.
 However, I find the exception messages not very useful.

 One problem may be that in interprocess/exception.hpp, the
 constructor
     interprocess_exception(error_code_t ec = other_error )
 always sets the m_str value (which is returned by the what() member
 function) to the same phrase
     boost::interprocess_exception::library_error

 Better would be something that is appropriate for each type
 of error, for example:
     message_queue receive: buffer_size (1) < max_msg_size (100)

 There are only a few places where exceptions are thrown in
 message_queue.hpp. Would it be possible to have for each of them more
 useful error messages for the what() strings?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4019>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC