DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ers::ThrowStream Struct Reference

Throws issues as exceptions. More...

#include <ThrowStream.hpp>

Inheritance diagram for ers::ThrowStream:
[legend]
Collaboration diagram for ers::ThrowStream:
[legend]

Public Member Functions

void write (const Issue &issue) override
 
- Public Member Functions inherited from ers::OutputStream
virtual ~OutputStream ()
 Sends the issue into this stream.
 

Additional Inherited Members

- Protected Member Functions inherited from ers::OutputStream
 OutputStream ()
 
OutputStreamchained ()
 
virtual bool isNull () const
 

Detailed Description

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"
Author
Serguei Kolos

Definition at line 35 of file ThrowStream.hpp.

Member Function Documentation

◆ write()

void ers::ThrowStream::write ( const Issue & issue)
overridevirtual

Implements ers::OutputStream.


The documentation for this struct was generated from the following file: