#include <event.h>
|
| std::string | str () const |
| |
| auto | format_to (std::format_context &ctx) const -> decltype(ctx.out()) |
| |
Definition at line 110 of file event.h.
◆ format_to()
| auto pars::ev::exception::format_to |
( |
std::format_context & | ctx | ) |
const -> decltype(ctx.out())
|
|
inline |
Definition at line 135 of file event.h.
136 {
137 return std::format_to(
ctx.out(),
"{}",
str());
138 }
References str().
◆ str()
| std::string pars::ev::exception::str |
( |
| ) |
const |
|
inline |
Definition at line 114 of file event.h.
115 {
116 try
117 {
118 std::rethrow_exception(
eptr);
119 }
120 catch (clev::exception& e)
121 {
122 return std::format("{}", e.what());
123 }
124 catch (std::exception& e)
125 {
126 return std::format("{}", e.what());
127 }
128 catch (...)
129 {
130 return "Unknown!";
131 }
132 return "<empty-exception>";
133 }
References eptr.
Referenced by format_to().
◆ eptr
| std::exception_ptr pars::ev::exception::eptr |
The documentation for this struct was generated from the following file:
- /home/runner/work/pars-cxx/pars-cxx/lib/include/pars/ev/event.h