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

#include <xml.hpp>

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

Public Member Functions

 BadFileData (const std::string &what, unsigned long line_no, unsigned long line_pos, int level_arg=0) noexcept
 
virtual ~BadFileData () 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 std::string &what, unsigned long line_no, unsigned long line_pos) noexcept
 

Detailed Description

Bad file exception.

Definition at line 32 of file xml.hpp.

Constructor & Destructor Documentation

◆ BadFileData()

dunedaq::oks::BadFileData::BadFileData ( const std::string & what,
unsigned long line_no,
unsigned long line_pos,
int level_arg = 0 )
inlinenoexcept

Definition at line 36 of file xml.hpp.

36: exception (fill(what, line_no, line_pos), level_arg) {}
static std::string fill(const std::string &what, unsigned long line_no, unsigned long line_pos) noexcept
Definition xml.cpp:52
virtual const char * what() const noexcept
caught dunedaq::conffwk::Exception exception

◆ ~BadFileData()

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

Definition at line 38 of file xml.hpp.

38{ }

Member Function Documentation

◆ fill()

std::string dunedaq::oks::BadFileData::fill ( const std::string & what,
unsigned long line_no,
unsigned long line_pos )
staticprivatenoexcept

Definition at line 52 of file xml.cpp.

53 {
54 std::ostringstream s;
55 s << item << " (line " << line_no << ", char " << line_pos << ')';
56 return s.str();
57 }

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