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 149 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 154 of file object.hpp.

154: exception (fill(o, reason.what()), reason.level() + 1) { }
static std::string fill(const OksObject *o, const std::string &reason)
Definition object.cpp:85
caught dunedaq::conffwk::Exception exception
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 157 of file object.hpp.

157: exception (fill(o, reason), 0) { }

◆ ~FailedDestoyObject()

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

Definition at line 159 of file object.hpp.

159{ }

Member Function Documentation

◆ fill()

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

Definition at line 85 of file object.cpp.

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

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