Re: What an error message must do
Emil Dotchevski via Boost <[email protected]> Mon, 29 Jun 2026 12:45:49 -0400
| Newsgroups | gmane.comp.lib.boost.devel |
|---|---|
| Message-ID | <CAN5fK5HVqogjz08xrXbmiw1YZ7J0W04PKxLu-j1U_1wvnRekxw@mail.gmail.com> |
On Mon, Jun 29, 2026 at 4:50 AM Udo Steinbach via Boost < [email protected]> wrote: > > I do not think a single library or a single "mechanism" for reporting > > errors > > All conceivable error-handling mechanisms have two things in common. They > all have to convert infos to text. And they need safe collect and > transport. Since the collected information is of unknown—and in any case, > varying—types, the transport mechanism must be a heterogeneous container. It is implied in what you're saying, but let's be explicit -- the transport mechanism needs to be: - Type-safe (because the conversion to text needs to be postponed until an error handling scope is reached). - Dynamic (because intermediate error-neutral functions may not know at compile time all possible failures that needs to be communicated to the error handling scope). _______________________________________________ Boost mailing list -- [email protected] To unsubscribe send an email to [email protected] https://lists.boost.org/mailman3/lists/boost.lists.boost.org/ Archived at: https://lists.boost.org/archives/list/[email protected]/message/EVNFUF5HIMOZRQVQBIWNT6O4XE6DTLVL/