DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Throws issues as exceptions. More...
#include <ThrowStream.hpp>
Public Member Functions | |
void | write (const Issue &issue) override |
![]() | |
virtual | ~OutputStream () |
Sends the issue into this stream. | |
Additional Inherited Members | |
![]() | |
OutputStream () | |
OutputStream & | chained () |
virtual bool | isNull () const |
Throws issues as exceptions.
This class implements a stream, which throws the issue written to it as a normal C++ exception. In order to employ this implementation in a stream configuration the name to be used is "throw". E.g. the following configuration will print a first issue that is passed to the FATAL ERS stream to the standard output and then throws this issue as a C++ exception:
export DUNEDAQ_ERS_FATAL="stdout,throw"
Definition at line 35 of file ThrowStream.hpp.
|
overridevirtual |
Implements ers::OutputStream.