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

Cannot add include file. Such exception is thrown when OKS cannot add include file. More...

#include <file.hpp>

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

Public Member Functions

 FailedAddInclude (const OksFile &file, const std::string &include_name, const exception &reason) noexcept
 
 FailedAddInclude (const OksFile &file, const std::string &include_name, const std::string &reason) noexcept
 
virtual ~FailedAddInclude () 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 OksFile &file, const std::string &include_name, const std::string &reason) noexcept
 

Detailed Description

Cannot add include file. Such exception is thrown when OKS cannot add include file.

Definition at line 120 of file file.hpp.

Constructor & Destructor Documentation

◆ FailedAddInclude() [1/2]

dunedaq::oks::FailedAddInclude::FailedAddInclude ( const OksFile & file,
const std::string & include_name,
const exception & reason )
inlinenoexcept

The constructor gets reason from nested oks exception.

Definition at line 125 of file file.hpp.

125: exception (fill(file, include_name, reason.what()), reason.level() + 1) { }
static std::string fill(const OksFile &file, const std::string &include_name, const std::string &reason) noexcept
Definition file.cpp:198
caught dunedaq::conffwk::Exception exception
std::string const reason(ers::Issue const &)

◆ FailedAddInclude() [2/2]

dunedaq::oks::FailedAddInclude::FailedAddInclude ( const OksFile & file,
const std::string & include_name,
const std::string & reason )
inlinenoexcept

The constructor gets reason from non-oks exception.

Definition at line 128 of file file.hpp.

128: exception (fill(file, include_name, reason), 0) { }

◆ ~FailedAddInclude()

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

Definition at line 130 of file file.hpp.

130{ }

Member Function Documentation

◆ fill()

std::string dunedaq::oks::FailedAddInclude::fill ( const OksFile & file,
const std::string & include_name,
const std::string & reason )
staticprivatenoexcept

Definition at line 198 of file file.cpp.

199 {
200 return ( std::string("Failed to add include \'") + include_name + "\' to file \'" + file.get_full_file_name() + "\' because:\n" + reason);
201 }

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