1#ifndef DUNE_COPASI_COMMON_EXCEPTION_HH
2#define DUNE_COPASI_COMMON_EXCEPTION_HH
4#include <dune-copasi-config.hh>
6#include <dune/common/classname.hh>
11#if __has_include(<stacktrace>)
15#if __has_include(<format>)
21template<
typename Exception,
typename...
Args>
25 auto message = std::string{
"Message: "};
28#if ___cpp_lib_stacktrace >= 202011L && __cpp_lib_formatters >= 202302L
29 message += std::format(
"\nStacktrace:\n{}", std::stacktrace::current());
32 return std::forward<Exception>(
e);
Definition axis_names.hh:7
auto format_exception(Exception &&e, fmt::format_string< Args... > format, Args &&... args)
Definition exceptions.hh:23
constexpr bool is_bitflags_v
Alias for Bitflag indicator.
Definition bit_flags.hh:24