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

#include <object.hpp>

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

Public Member Functions

 FailedDestoyObject (const OksObject *o, const exception &reason) noexcept
 FailedDestoyObject (const OksObject *o, const std::string &reason) noexcept
virtual ~FailedDestoyObject () 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 OksObject *o, const std::string &reason)

Detailed Description

Failed to rename an object.

Definition at line 161 of file object.hpp.

Constructor & Destructor Documentation

◆ FailedDestoyObject() [1/2]

dunedaq::oks::FailedDestoyObject::FailedDestoyObject ( const OksObject * o,
const exception & reason )
inlinenoexcept

Get reason from nested oks exception.

Definition at line 166 of file object.hpp.

167 : exception(fill(o, reason.what()), reason.level() + 1)
168 {
169 }
static std::string fill(const OksObject *o, const std::string &reason)
Definition object.cpp:88
exception(const std::string &what_arg, int level_arg) noexcept
Definition xml.cpp:41
std::string const reason(ers::Issue const &)

◆ FailedDestoyObject() [2/2]

dunedaq::oks::FailedDestoyObject::FailedDestoyObject ( const OksObject * o,
const std::string & reason )
inlinenoexcept

Get reason from nested non-oks exception.

Definition at line 172 of file object.hpp.

173 : exception(fill(o, reason), 0)
174 {
175 }

◆ ~FailedDestoyObject()

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

Definition at line 177 of file object.hpp.

177{}

Member Function Documentation

◆ fill()

std::string dunedaq::oks::FailedDestoyObject::fill ( const OksObject * o,
const std::string & reason )
staticprivate

Definition at line 88 of file object.cpp.

89{
90 std::ostringstream s;
91 s << "Failed to destroy object " << o << '\n' << reason;
92 return s.str();
93}

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