Skip to content

Commit

Permalink
New feature: aggregate_error::throw_nested, a more concise, clear ver…
Browse files Browse the repository at this point in the history
…sion
refvalue committed Nov 29, 2024
1 parent 5e67604 commit 80006e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/essence/exception.hpp
Original file line number Diff line number Diff line change
@@ -52,8 +52,7 @@ namespace essence {
const std::exception_ptr& root, std::int32_t indent = default_nested_exception_indent);

template <typename E>
[[noreturn]] ES_API(CPPESSENCE) static void throw_nested(
E&& ex, std::int32_t indent = default_nested_exception_indent) try {
[[noreturn]] static void throw_nested(E&& ex, std::int32_t indent = default_nested_exception_indent) try {
std::throw_with_nested(std::forward<E>(ex));
} catch (const std::exception&) {
flatten_and_throw(std::current_exception(), indent);

0 comments on commit 80006e1

Please sign in to comment.