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 176 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 181 of file file.hpp.

185 : exception(fill(file, from, to, reason.what()), reason.level() + 1)
186 {
187 }
static std::string fill(const OksFile &file, const std::string &from, const std::string &to, const std::string &reason) noexcept
Definition file.cpp:216
exception(const std::string &what_arg, int level_arg) noexcept
Definition xml.cpp:41
std::string const reason(ers::Issue const &)
Both frame_count_limit and tp_count_limit were set to(disabled) in the TPCRawDataProcessor " "config. TPs will not send."

◆ 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 190 of file file.hpp.

194 : exception(fill(file, from, to, reason), 0)
195 {
196 }

◆ ~FailedRenameInclude()

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

Definition at line 198 of file file.hpp.

198{}

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

220{
221 return (std::string("Failed to rename include of \'") + file.get_full_file_name() + "\' from \'" + from + "\' to \'" +
222 to + "\' because:\n" + reason);
223}

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