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

Failed add new class. More...

#include <kernel.hpp>

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

Public Member Functions

 CannotAddClass (const OksClass &c, const exception &reason) noexcept
 
 CannotAddClass (const OksClass &c, const std::string &reason) noexcept
 
virtual ~CannotAddClass () 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 OksClass &c, const std::string &reason) noexcept
 

Detailed Description

Failed add new class.

Such exception is thrown when OKS cannot add new class.

Definition at line 302 of file kernel.hpp.

Constructor & Destructor Documentation

◆ CannotAddClass() [1/2]

dunedaq::oks::CannotAddClass::CannotAddClass ( const OksClass & c,
const exception & reason )
inlinenoexcept

The constructor gets reason from nested oks exception.

Definition at line 307 of file kernel.hpp.

307: exception (fill(c, reason.what()), reason.level() + 1) {}
static std::string fill(const OksClass &c, const std::string &reason) noexcept
caught dunedaq::conffwk::Exception exception
std::string const reason(ers::Issue const &)

◆ CannotAddClass() [2/2]

dunedaq::oks::CannotAddClass::CannotAddClass ( const OksClass & c,
const std::string & reason )
inlinenoexcept

The constructor gets reason from non-oks exception.

Definition at line 310 of file kernel.hpp.

310: exception (fill(c, reason), 0) {}

◆ ~CannotAddClass()

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

Definition at line 312 of file kernel.hpp.

312{ }

Member Function Documentation

◆ fill()

static std::string dunedaq::oks::CannotAddClass::fill ( const OksClass & c,
const std::string & reason )
staticprivatenoexcept

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