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

#include <object.hpp>

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

Public Member Functions

 AddRcrError (const OksObject *obj, const std::string &name, const OksObject *p1, const OksObject *p2) noexcept
 
virtual ~AddRcrError () 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 *obj, const std::string &name, const OksObject *p1, const OksObject *p2)
 

Detailed Description

Failed to add RCR value.

Definition at line 316 of file object.hpp.

Constructor & Destructor Documentation

◆ AddRcrError()

dunedaq::oks::AddRcrError::AddRcrError ( const OksObject * obj,
const std::string & name,
const OksObject * p1,
const OksObject * p2 )
inlinenoexcept

Get reason from nested non-oks exception.

Definition at line 321 of file object.hpp.

321: exception (fill(obj, name, p1, p2), 0) { }
static std::string fill(const OksObject *obj, const std::string &name, const OksObject *p1, const OksObject *p2)
Definition object.cpp:109
caught dunedaq::conffwk::Exception exception

◆ ~AddRcrError()

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

Definition at line 323 of file object.hpp.

323{ }

Member Function Documentation

◆ fill()

std::string dunedaq::oks::AddRcrError::fill ( const OksObject * obj,
const std::string & name,
const OksObject * p1,
const OksObject * p2 )
staticprivate

Definition at line 109 of file object.cpp.

110 {
111 std::ostringstream s;
112 s << "Object " << obj << " cannot be linked with " << p1 << " via exclusive relationship \'" << name << "\' since it is already referenced by object " << p2;
113 return s.str();
114 }

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