C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Formatting std::exception?

From: Bjorn Reese <breese_at_[hidden]>
Date: Fri, 12 Dec 2025 14:21:27 +0100
On 12/12/25 11:11, 叶易安 via Std-Proposals wrote:

> In user's perspective, the user/caller usually prefers an output like B.
> But currently almost all C++ 3rd-party libraries (who use exception
> rather then error_code/assert) provides something like A.
>
> Maybe should we **encourage** people to carry more information in
> exceptions?

Additional information is usually reported via a logging framework
rather than exceptions, as it enables developers to see all events
leading up to the incident.

Received on 2025-12-12 13:21:32