|
ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Classes | |
| class | NestedExceptionReporter |
| Adapter object intended to be used in contexts without direct access to the output-stream object. More... | |
Functions | |
| template<class E , class... Args> | |
| E | MakeJsonError (nlohmann::json_pointer< nlohmann::json > const &ptr, Args &&... args) |
| template<class E , char const * > | |
| E | MakeJsonError (nlohmann::json_pointer< nlohmann::json > const &ptr, char const *str) |
| template<class E > | |
| E | MakeJsonErrorMissingValue (nlohmann::json_pointer< nlohmann::json > const &ptr) |
| template<class E > | |
| E | MakeJsonErrorWrongType (nlohmann::json_pointer< nlohmann::json > const &ptr, char const *expected_type, char const *actual_type) |
| template<class E > | |
| E | MakeJsonErrorUnknownVariant (nlohmann::json_pointer< nlohmann::json > const &ptr, char const *known_variants, char const *actual_variant) |
| void | ReportNestedExceptions (std::ostream &os) noexcept |
| void | ReportNestedExceptions (std::ostream &os, std::exception const &e) noexcept |
| void | ReportNestedExceptions (std::ostream &os, std::exception_ptr ptr) |
| Report nested exception(s) in exception messages to os. More... | |
| void | FormatException (std::ostream &os, std::exception_ptr ptr) |
| Report without nesting. More... | |
| std::string | FormatException (std::exception_ptr ptr) |
| Return formatted exception. More... | |
| std::string daq::error::FormatException | ( | std::exception_ptr | ptr | ) |
Return formatted exception.
| ptr | exception (possibly nested) to report. |
Definition at line 91 of file report.cpp.
| void daq::error::FormatException | ( | std::ostream & | os, |
| std::exception_ptr | ptr | ||
| ) |
Report without nesting.
| os | output stream to report to. |
| ptr | exception (possibly nested) to report. |
Definition at line 79 of file report.cpp.
| E daq::error::MakeJsonError | ( | nlohmann::json_pointer< nlohmann::json > const & | ptr, |
| Args &&... | args | ||
| ) |
| E daq::error::MakeJsonError | ( | nlohmann::json_pointer< nlohmann::json > const & | ptr, |
| char const * | str | ||
| ) |
| E daq::error::MakeJsonErrorMissingValue | ( | nlohmann::json_pointer< nlohmann::json > const & | ptr | ) |
| E daq::error::MakeJsonErrorUnknownVariant | ( | nlohmann::json_pointer< nlohmann::json > const & | ptr, |
| char const * | known_variants, | ||
| char const * | actual_variant | ||
| ) |
| E daq::error::MakeJsonErrorWrongType | ( | nlohmann::json_pointer< nlohmann::json > const & | ptr, |
| char const * | expected_type, | ||
| char const * | actual_type | ||
| ) |
|
noexcept |
Definition at line 50 of file report.cpp.
|
noexcept |
Definition at line 46 of file report.cpp.
| void daq::error::ReportNestedExceptions | ( | std::ostream & | os, |
| std::exception_ptr | ptr | ||
| ) |
Report nested exception(s) in exception messages to os.
If ptr does not hold an exception this function has no effect.
| os | output stream to report to. |
| ptr | exception (possibly nested) to report. |
Definition at line 65 of file report.cpp.