|
ifw-daq
3.0.0-pre2
IFW Data Acquisition modules
|
Adapter object intended to be used in contexts without direct access to the output-stream object. More...
#include <report.hpp>
Public Member Functions | |
| NestedExceptionReporter (std::exception const &exception) noexcept | |
| Construct from exception derived from std::exception. More... | |
| NestedExceptionReporter (std::exception_ptr ptr) noexcept | |
| Construct from exception_ptr. More... | |
| std::string | Str () const |
| Convenience function for constructing a std::string from the exception. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, NestedExceptionReporter const &reporter) |
| Formats exception from reporter using ReportNestedExceptions. More... | |
Adapter object intended to be used in contexts without direct access to the output-stream object.
try {
MaybeThrows();
} catch (std::exception const& e) {
LOG4CPLUS_ERROR(logger, "MaybeThrow failed with:\n" << NestedExceptionReporter(e));
}
Definition at line 54 of file report.hpp.
|
inlineexplicitnoexcept |
Construct from exception derived from std::exception.
Definition at line 59 of file report.hpp.
|
inlineexplicitnoexcept |
Construct from exception_ptr.
Definition at line 64 of file report.hpp.
| std::string daq::error::NestedExceptionReporter::Str | ( | ) | const |
Convenience function for constructing a std::string from the exception.
Definition at line 97 of file report.cpp.
|
friend |
Formats exception from reporter using ReportNestedExceptions.
| os | output stream to output to. |
| reporter | Reporter adapter to format. |
Definition at line 81 of file report.hpp.