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

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

#include <file.hpp>

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

Public Member Functions

 FailedRemoveInclude (const OksFile &file, const std::string &include_name, const exception &reason) noexcept
 
 FailedRemoveInclude (const OksFile &file, const std::string &include_name, const std::string &reason) noexcept
 
virtual ~FailedRemoveInclude () 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 remove include file. Such exception is thrown when OKS cannot remove include file.

Definition at line 145 of file file.hpp.

Constructor & Destructor Documentation

◆ FailedRemoveInclude() [1/2]

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

The constructor gets reason from nested oks exception.

Definition at line 150 of file file.hpp.

150: 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:204
caught dunedaq::conffwk::Exception exception
std::string const reason(ers::Issue const &)

◆ FailedRemoveInclude() [2/2]

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

The constructor gets reason from non-oks exception.

Definition at line 153 of file file.hpp.

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

◆ ~FailedRemoveInclude()

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

Definition at line 155 of file file.hpp.

155{ }

Member Function Documentation

◆ fill()

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

Definition at line 204 of file file.cpp.

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

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