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 250 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 255 of file kernel.hpp.

255: exception (fill(item, name, reason.what()), reason.level() + 1) {}
static std::string fill(const char *item, const std::string &name, const std::string &reason) noexcept
caught dunedaq::conffwk::Exception exception
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 258 of file kernel.hpp.

258: exception (fill(item, name, reason), 0) {}

◆ ~CanNotSetActiveFile()

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

Definition at line 260 of file kernel.hpp.

260{ }

Member Function Documentation

◆ fill()

static 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: