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

#include <object.hpp>

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

Public Member Functions

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

Definition at line 63 of file object.hpp.

Constructor & Destructor Documentation

◆ FailedCreateObject() [1/2]

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

Get reason from nested oks exception.

Definition at line 68 of file object.hpp.

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

◆ FailedCreateObject() [2/2]

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

Get reason from nested non-oks exception.

Definition at line 71 of file object.hpp.

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

◆ ~FailedCreateObject()

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

Definition at line 73 of file object.hpp.

73{ }

Member Function Documentation

◆ fill()

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

Definition at line 61 of file object.cpp.

62 {
63 std::ostringstream s;
64 s << "Failed to create object " << o << '\n' << reason;
65 return s.str();
66 }

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