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

Failed to set active file. More...

#include <kernel.hpp>

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

Public Member Functions

 CanNotSetActiveFile (const char *item, const std::string &name, const exception &reason) noexcept
 CanNotSetActiveFile (const char *item, const std::string &name, const std::string &reason) noexcept
virtual ~CanNotSetActiveFile () 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 char *item, const std::string &name, const std::string &reason) noexcept

Detailed Description

Failed to set active file.

Such exception is thrown when OKS cannot successfully set active schema or data file.

Definition at line 267 of file kernel.hpp.

Constructor & Destructor Documentation

◆ CanNotSetActiveFile() [1/2]

dunedaq::oks::CanNotSetActiveFile::CanNotSetActiveFile ( const char * item,
const std::string & name,
const exception & reason )
inlinenoexcept

The constructor gets reason from nested oks exception.

Definition at line 272 of file kernel.hpp.

273 : exception(fill(item, name, reason.what()), reason.level() + 1)
274 {
275 }
static std::string fill(const char *item, const std::string &name, const std::string &reason) noexcept
exception(const std::string &what_arg, int level_arg) noexcept
Definition xml.cpp:41
std::string const reason(ers::Issue const &)

◆ CanNotSetActiveFile() [2/2]

dunedaq::oks::CanNotSetActiveFile::CanNotSetActiveFile ( const char * item,
const std::string & name,
const std::string & reason )
inlinenoexcept

The constructor gets reason from non-oks exception.

Definition at line 278 of file kernel.hpp.

279 : exception(fill(item, name, reason), 0)
280 {
281 }

◆ ~CanNotSetActiveFile()

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

Definition at line 283 of file kernel.hpp.

283{}

Member Function Documentation

◆ fill()

std::string dunedaq::oks::CanNotSetActiveFile::fill ( const char * item,
const std::string & name,
const std::string & reason )
staticprivatenoexcept

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