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 122 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 127 of file file.hpp.

128 : exception(fill(file, include_name, reason.what()), reason.level() + 1)
129 {
130 }
static std::string fill(const OksFile &file, const std::string &include_name, const std::string &reason) noexcept
Definition file.cpp:202
exception(const std::string &what_arg, int level_arg) noexcept
Definition xml.cpp:41
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 133 of file file.hpp.

134 : exception(fill(file, include_name, reason), 0)
135 {
136 }

◆ ~FailedAddInclude()

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

Definition at line 138 of file file.hpp.

138{}

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

203{
204 return (std::string("Failed to add include \'") + include_name + "\' to file \'" + file.get_full_file_name() +
205 "\' because:\n" + reason);
206}

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