Ticket #4019 (closed Feature Requests: fixed)
improve interprocess exception what() string
|Reported by:||Marty Olevitch <marty@…>||Owned by:||igaztanaga|
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
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?