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 45 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 49 of file xml.hpp.

50 : exception(fill(what, line_no, line_pos), level_arg)
51 {
52 }
static std::string fill(const std::string &what, unsigned long line_no, unsigned long line_pos) noexcept
Definition xml.cpp:58
virtual const char * what() const noexcept
exception(const std::string &what_arg, int level_arg) noexcept
Definition xml.cpp:41

◆ ~BadFileData()

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

Definition at line 54 of file xml.hpp.

54{}

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 58 of file xml.cpp.

59{
60 std::ostringstream s;
61 s << item << " (line " << line_no << ", char " << line_pos << ')';
62 return s.str();
63}

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