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

#include <object.hpp>

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

Public Member Functions

 AttributeReadError (const char *value, const char *type, const exception &reason) noexcept
 AttributeReadError (const char *value, const char *type, const std::string &reason) noexcept
 AttributeReadError (const char *type, const exception &reason) noexcept
 AttributeReadError (const char *type, const std::string &reason) noexcept
virtual ~AttributeReadError () 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 *value, const char *type, const std::string &reason)
static std::string fill (const char *type, const std::string &reason)

Detailed Description

Failed to read a value since it does not match to expected type.

Definition at line 203 of file object.hpp.

Constructor & Destructor Documentation

◆ AttributeReadError() [1/4]

dunedaq::oks::AttributeReadError::AttributeReadError ( const char * value,
const char * type,
const exception & reason )
inlinenoexcept

Get reason from nested oks exception.

Definition at line 208 of file object.hpp.

209 : exception(fill(value, type, reason.what()), reason.level() + 1)
210 {
211 }
static std::string fill(const char *value, const char *type, const std::string &reason)
exception(const std::string &what_arg, int level_arg) noexcept
Definition xml.cpp:41
std::string const reason(ers::Issue const &)

◆ AttributeReadError() [2/4]

dunedaq::oks::AttributeReadError::AttributeReadError ( const char * value,
const char * type,
const std::string & reason )
inlinenoexcept

Get reason from nested non-oks exception.

Definition at line 214 of file object.hpp.

215 : exception(fill(value, type, reason), 0)
216 {
217 }

◆ AttributeReadError() [3/4]

dunedaq::oks::AttributeReadError::AttributeReadError ( const char * type,
const exception & reason )
inlinenoexcept

Get reason from nested oks exception.

Definition at line 220 of file object.hpp.

221 : exception(fill(type, reason.what()), reason.level() + 1)
222 {
223 }

◆ AttributeReadError() [4/4]

dunedaq::oks::AttributeReadError::AttributeReadError ( const char * type,
const std::string & reason )
inlinenoexcept

Get reason from nested non-oks exception.

Definition at line 226 of file object.hpp.

227 : exception(fill(type, reason), 0)
228 {
229 }

◆ ~AttributeReadError()

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

Definition at line 231 of file object.hpp.

231{}

Member Function Documentation

◆ fill() [1/2]

std::string dunedaq::oks::AttributeReadError::fill ( const char * type,
const std::string & reason )
staticprivate

◆ fill() [2/2]

std::string dunedaq::oks::AttributeReadError::fill ( const char * value,
const char * type,
const std::string & reason )
staticprivate

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