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 71 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 76 of file xml.hpp.

76: exception (fill(what, name, reason.what()), reason.level() + 1) { }
static std::string fill(const std::string &what, const std::string &name, const std::string &reason) noexcept
Definition xml.cpp:66
virtual const char * what() const noexcept
caught dunedaq::conffwk::Exception exception
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 79 of file xml.hpp.

79: exception (fill(what, name, reason), 0) { }

◆ ~FailedSave()

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

Definition at line 81 of file xml.hpp.

81{ }

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 66 of file xml.cpp.

67 {
68 return (std::string("Failed to save ") + item + " \'" + name + "\'\n" + reason);
69 }

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