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

#include <xml.hpp>

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

Public Member Functions

 FailedSave (const std::string &what, const std::string &name, const exception &reason) noexcept
 FailedSave (const std::string &what, const std::string &name, const std::string &reason) noexcept
virtual ~FailedSave () 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 &name, const std::string &reason) noexcept

Detailed Description

Failed to save a value.

Definition at line 86 of file xml.hpp.

Constructor & Destructor Documentation

◆ FailedSave() [1/2]

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

Get reason from nested oks exception.

Definition at line 91 of file xml.hpp.

92 : exception(fill(what, name, reason.what()), reason.level() + 1)
93 {
94 }
static std::string fill(const std::string &what, const std::string &name, const std::string &reason) noexcept
Definition xml.cpp:72
virtual const char * what() const noexcept
exception(const std::string &what_arg, int level_arg) noexcept
Definition xml.cpp:41
std::string const reason(ers::Issue const &)

◆ FailedSave() [2/2]

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

Get reason from nested non-oks exception.

Definition at line 97 of file xml.hpp.

98 : exception(fill(what, name, reason), 0)
99 {
100 }

◆ ~FailedSave()

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

Definition at line 102 of file xml.hpp.

102{}

Member Function Documentation

◆ fill()

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

Definition at line 72 of file xml.cpp.

73{
74 return (std::string("Failed to save ") + item + " \'" + name + "\'\n" + reason);
75}

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