|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
#include "failure_report.h"#include "HealthGPS.Core/exception.h"#include <cstdio>#include <fmt/color.h>#include <fmt/format.h>Namespaces | |
| namespace | hgps |
| Top-level namespace for Health-GPS Console host application. | |
Functions | |
| std::string | hgps::current_simulation_phase () |
| Phase path for this thread, or empty when no SimulationPhase is active. | |
| void | hgps::clear_simulation_phase () |
| Drop the phase path. Used after a worker thread has stored the failure. | |
| void | hgps::validate_requested_thread_count (std::size_t requested) |
| Reject -T values that are set and below minimum_explicit_thread_count. | |
| std::string | hgps::format_failure (std::string_view phase, const std::exception &ex) |
| One paragraph naming the phase, the exception type, and ex.what(). | |
| std::string | hgps::format_unknown_failure (std::string_view phase) |
| Same banner for an exception that is not a std::exception. | |
| void | hgps::report_failure (std::string_view message) |
| Write a failure banner and flush, so a crash cannot discard it. | |
| void | hgps::install_failure_terminate_handler () |
| Last-resort printer for std::terminate (noexcept violations and escaped thread exceptions). | |