|
Icarus
Vehicle Simulation as a Transformable Computational Graph, built on Vulcan and Janus
|
Integration between Error types and LogService. More...


Go to the source code of this file.
Namespaces | |
| namespace | icarus |
Macros | |
| #define | ICARUS_THROW_LOG(error) |
| Throw an error after logging it to global LogService. | |
| #define | ICARUS_THROW_LOG_CTX(error, time, component) |
| Throw an error with full context, logging before throw. | |
Functions | |
| LogLevel | icarus::SeverityToLogLevel (Severity severity) |
| Convert error severity to log level. | |
| void | icarus::LogError (const Error &error, double time=0.0, const std::string &component="") |
| Log an error to the global LogService. | |
| template<typename E> | |
| void | icarus::ThrowAndLog (E &&error, double time=0.0, const std::string &component="") |
| Throw an error after logging it. | |
Integration between Error types and LogService.
Include this header to get automatic logging when throwing errors. This file bridges Error.hpp and LogService.hpp.
| #define ICARUS_THROW_LOG | ( | error | ) |
Throw an error after logging it to global LogService.
| error | The error to throw |
| #define ICARUS_THROW_LOG_CTX | ( | error, | |
| time, | |||
| component ) |
Throw an error with full context, logging before throw.
| error | The error to throw |
| time | Simulation time |
| component | Component name for logging context |