DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::oks::FailedRead Class Reference

#include <xml.hpp>

Inheritance diagram for dunedaq::oks::FailedRead:
[legend]
Collaboration diagram for dunedaq::oks::FailedRead:
[legend]

Public Member Functions

 FailedRead (const std::string &what, const exception &reason) noexcept
 
 FailedRead (const std::string &what, const std::string &reason) noexcept
 
virtual ~FailedRead () noexcept
 
- Public Member Functions inherited from dunedaq::oks::exception
 exception (const std::string &what_arg, int level_arg) noexcept
 
virtual ~exception () noexcept
 
int level () const noexcept
 
virtual const char * what () const noexcept
 

Static Private Member Functions

static std::string fill (const std::string &what, const std::string &reason) noexcept
 

Detailed Description

Failed to read a value.

Definition at line 49 of file xml.hpp.

Constructor & Destructor Documentation

◆ FailedRead() [1/2]

dunedaq::oks::FailedRead::FailedRead ( const std::string & what,
const exception & reason )
inlinenoexcept

Get reason from nested oks exception.

Definition at line 54 of file xml.hpp.

54: exception (fill(what, reason.what()), reason.level() + 1) { }
static std::string fill(const std::string &what, const std::string &reason) noexcept
Definition xml.cpp:60
virtual const char * what() const noexcept
caught dunedaq::conffwk::Exception exception
std::string const reason(ers::Issue const &)

◆ FailedRead() [2/2]

dunedaq::oks::FailedRead::FailedRead ( const std::string & what,
const std::string & reason )
inlinenoexcept

Get reason from nested non-oks exception.

Definition at line 57 of file xml.hpp.

57: exception (fill(what, reason), 0) { }

◆ ~FailedRead()

virtual dunedaq::oks::FailedRead::~FailedRead ( )
inlinevirtualnoexcept

Definition at line 59 of file xml.hpp.

59{ }

Member Function Documentation

◆ fill()

std::string dunedaq::oks::FailedRead::fill ( const std::string & what,
const std::string & reason )
staticprivatenoexcept

Definition at line 60 of file xml.cpp.

61 {
62 return (std::string("Failed to read \'") + item + "\'\n" + reason);
63 }

The documentation for this class was generated from the following files: