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

#include <class.hpp>

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

Public Member Functions

 SetOperationFailed (const char *op, const exception &reason) noexcept
 
 SetOperationFailed (const char *op, const std::string &reason) noexcept
 
virtual ~SetOperationFailed () 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 char *op, const std::string &reason) noexcept
 

Detailed Description

Cannot set some class, attribute, relationship or method property

Definition at line 128 of file class.hpp.

Constructor & Destructor Documentation

◆ SetOperationFailed() [1/2]

dunedaq::oks::SetOperationFailed::SetOperationFailed ( const char * op,
const exception & reason )
inlinenoexcept

Definition at line 132 of file class.hpp.

132: exception (fill(op, reason.what()), reason.level() + 1) { }
static std::string fill(const char *op, const std::string &reason) noexcept
Definition class.cpp:69
caught dunedaq::conffwk::Exception exception
std::string const reason(ers::Issue const &)

◆ SetOperationFailed() [2/2]

dunedaq::oks::SetOperationFailed::SetOperationFailed ( const char * op,
const std::string & reason )
inlinenoexcept

Definition at line 133 of file class.hpp.

133: exception (fill(op, reason), 0) {}

◆ ~SetOperationFailed()

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

Definition at line 134 of file class.hpp.

134{ }

Member Function Documentation

◆ fill()

std::string dunedaq::oks::SetOperationFailed::fill ( const char * op,
const std::string & reason )
staticprivatenoexcept

Definition at line 69 of file class.cpp.

70 {
71 return std::string("method \'") + op + "()\' failed because:\n" + reason;
72 }

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