Ticket #4019 (closed Feature Requests: fixed)

Opened 6 years ago

Last modified 5 years ago

improve interprocess exception what() string

Reported by: Marty Olevitch <marty@…> Owned by: igaztanaga
Milestone: Boost 1.45.0 Component: interprocess
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc: joseph.h.garvin@…


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


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?


Change History

comment:1 Changed 6 years ago by joseph.h.garvin@…

  • Cc joseph.h.garvin@… added

In general, all the places where an interprocess_exception is thrown it would be helpful if there was a nice what() message. At least in 1.41 most of them seem to be empty.

comment:2 Changed 5 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Boost 1.43.0 to Boost-1.45.0

Some messages added for Boost 1.45 in release branch


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.