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 354 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 359 of file object.hpp.

360 : exception(fill(obj, name, p1, p2), 0)
361 {
362 }
static std::string fill(const OksObject *obj, const std::string &name, const OksObject *p1, const OksObject *p2)
Definition object.cpp:114
exception(const std::string &what_arg, int level_arg) noexcept
Definition xml.cpp:41
msgpack::object obj

◆ ~AddRcrError()

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

Definition at line 364 of file object.hpp.

364{}

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 114 of file object.cpp.

115{
116 std::ostringstream s;
117 s << "Object " << obj << " cannot be linked with " << p1 << " via exclusive relationship \'" << name
118 << "\' since it is already referenced by object " << p2;
119 return s.str();
120}

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