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

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

#include <file.hpp>

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

Public Member Functions

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

Detailed Description

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

Definition at line 170 of file file.hpp.

Constructor & Destructor Documentation

◆ FailedRenameInclude() [1/2]

dunedaq::oks::FailedRenameInclude::FailedRenameInclude ( const OksFile & file,
const std::string & from,
const std::string & to,
const exception & reason )
inlinenoexcept

The constructor gets reason from nested oks exception.

Definition at line 175 of file file.hpp.

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

◆ FailedRenameInclude() [2/2]

dunedaq::oks::FailedRenameInclude::FailedRenameInclude ( const OksFile & file,
const std::string & from,
const std::string & to,
const std::string & reason )
inlinenoexcept

The constructor gets reason from non-oks exception.

Definition at line 178 of file file.hpp.

178: exception (fill(file, from, to, reason), 0) { }

◆ ~FailedRenameInclude()

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

Definition at line 180 of file file.hpp.

180{ }

Member Function Documentation

◆ fill()

std::string dunedaq::oks::FailedRenameInclude::fill ( const OksFile & file,
const std::string & from,
const std::string & to,
const std::string & reason )
staticprivatenoexcept

Definition at line 210 of file file.cpp.

211 {
212 return ( std::string("Failed to rename include of \'") + file.get_full_file_name() + "\' from \'" + from + "\' to \'" + to + "\' because:\n" + reason);
213 }

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