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

195: exception (fill(value, type, reason.what()), reason.level() + 1) { }
static std::string fill(const char *value, const char *type, const std::string &reason)
caught dunedaq::conffwk::Exception exception
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 198 of file object.hpp.

198: exception (fill(value, type, reason), 0) { }

◆ AttributeReadError() [3/4]

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

Get reason from nested oks exception.

Definition at line 201 of file object.hpp.

201: exception (fill(type, reason.what()), reason.level() + 1) { }

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

204: exception (fill(type, reason), 0) { }

◆ ~AttributeReadError()

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

Definition at line 206 of file object.hpp.

206{ }

Member Function Documentation

◆ fill() [1/2]

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

◆ fill() [2/2]

static 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: