28 std::string previous_;
29 int uncaught_on_enter_;
44[[nodiscard]] std::string
format_failure(std::string_view phase,
const std::exception &ex);
SimulationPhase(std::string name)
Definition failure_report.cpp:40
SimulationPhase(const SimulationPhase &)=delete
~SimulationPhase()
Definition failure_report.cpp:51
SimulationPhase(SimulationPhase &&)=delete
SimulationPhase & operator=(SimulationPhase &&)=delete
SimulationPhase & operator=(const SimulationPhase &)=delete
Top-level namespace for Health-GPS Console host application.
Definition command_options.cpp:9
std::string format_failure(std::string_view phase, const std::exception &ex)
One paragraph naming the phase, the exception type, and ex.what().
Definition failure_report.cpp:76
void clear_simulation_phase()
Drop the phase path. Used after a worker thread has stored the failure.
Definition failure_report.cpp:61
void install_failure_terminate_handler()
Last-resort printer for std::terminate (noexcept violations and escaped thread exceptions).
Definition failure_report.cpp:95
constexpr std::size_t minimum_explicit_thread_count
Smallest -T value Health-GPS accepts when a cap is requested.
Definition failure_report.h:11
std::string format_unknown_failure(std::string_view phase)
Same banner for an exception that is not a std::exception.
Definition failure_report.cpp:81
void validate_requested_thread_count(std::size_t requested)
Reject -T values that are set and below minimum_explicit_thread_count.
Definition failure_report.cpp:63
void report_failure(std::string_view message)
Write a failure banner and flush, so a crash cannot discard it.
Definition failure_report.cpp:88
std::string current_simulation_phase()
Phase path for this thread, or empty when no SimulationPhase is active.
Definition failure_report.cpp:59