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

Cannot remove comment. Such exception is thrown when OKS cannot remove comment. More...

#include <file.hpp>

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

Public Member Functions

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

Detailed Description

Cannot remove comment. Such exception is thrown when OKS cannot remove comment.

Definition at line 220 of file file.hpp.

Constructor & Destructor Documentation

◆ FailedRemoveComment() [1/2]

dunedaq::oks::FailedRemoveComment::FailedRemoveComment ( const OksFile & file,
const std::string & creation_time,
const exception & reason )
inlinenoexcept

The constructor gets reason from nested oks exception.

Definition at line 225 of file file.hpp.

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

◆ FailedRemoveComment() [2/2]

dunedaq::oks::FailedRemoveComment::FailedRemoveComment ( const OksFile & file,
const std::string & creation_time,
const std::string & reason )
inlinenoexcept

The constructor gets reason from non-oks exception.

Definition at line 228 of file file.hpp.

228: exception (fill(file, creation_time, reason), 0) { }

◆ ~FailedRemoveComment()

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

Definition at line 230 of file file.hpp.

230{ }

Member Function Documentation

◆ fill()

std::string dunedaq::oks::FailedRemoveComment::fill ( const OksFile & file,
const std::string & creation_time,
const std::string & reason )
staticprivatenoexcept

Definition at line 222 of file file.cpp.

223 {
224 return ( std::string("Failed to remove comment created at \'") + creation_time + "\' from file \'" + file.get_full_file_name() + "\' because:\n" + reason);
225 }

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