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

#include <object.hpp>

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

Public Member Functions

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

Definition at line 105 of file object.hpp.

Constructor & Destructor Documentation

◆ FailedSaveObject() [1/2]

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

Get reason from nested oks exception.

Definition at line 110 of file object.hpp.

110: exception (fill(o, reason.what()), reason.level() + 1) { }
static std::string fill(const OksObject *o, const std::string &reason)
Definition object.cpp:69
caught dunedaq::conffwk::Exception exception
std::string const reason(ers::Issue const &)

◆ FailedSaveObject() [2/2]

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

Get reason from nested non-oks exception.

Definition at line 113 of file object.hpp.

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

◆ ~FailedSaveObject()

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

Definition at line 115 of file object.hpp.

115{ }

Member Function Documentation

◆ fill()

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

Definition at line 69 of file object.cpp.

70 {
71 std::ostringstream s;
72 s << "Failed to save object " << o << '\n' << reason;
73 return s.str();
74 }

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