ATLAS Offline Software
Loading...
Searching...
No Matches
FakeBkgTools::Database::XmlError Struct Reference

This propagates an error message + the reference to the faulty piece of XML when an exception is raised. More...

#include <Database.h>

Inheritance diagram for FakeBkgTools::Database::XmlError:
Collaboration diagram for FakeBkgTools::Database::XmlError:

Public Member Functions

 XmlError (const StringRef &l)
 XmlError (const char *s, std::size_t length)
XmlError & operator<< (const char *msg)
XmlError & operator<< (const std::string &msg)
XmlError & operator<< (int msg)
virtual const char * what () const noexcept override

Public Attributes

std::string reason
const StringRef location

Detailed Description

This propagates an error message + the reference to the faulty piece of XML when an exception is raised.

Definition at line 123 of file PhysicsAnalysis/AnalysisCommon/FakeBkgTools/FakeBkgTools/Database.h.

Constructor & Destructor Documentation

◆ XmlError() [1/2]

◆ XmlError() [2/2]

FakeBkgTools::Database::XmlError::XmlError ( const char * s,
std::size_t length )
inline

Member Function Documentation

◆ operator<<() [1/3]

XmlError & FakeBkgTools::Database::XmlError::operator<< ( const char * msg)
inline

Definition at line 129 of file PhysicsAnalysis/AnalysisCommon/FakeBkgTools/FakeBkgTools/Database.h.

129{ reason += msg; return *this; }
MsgStream & msg
Definition testRead.cxx:32

◆ operator<<() [2/3]

XmlError & FakeBkgTools::Database::XmlError::operator<< ( const std::string & msg)
inline

Definition at line 130 of file PhysicsAnalysis/AnalysisCommon/FakeBkgTools/FakeBkgTools/Database.h.

130{ reason += msg; return *this; }

◆ operator<<() [3/3]

XmlError & FakeBkgTools::Database::XmlError::operator<< ( int msg)
inline

Definition at line 131 of file PhysicsAnalysis/AnalysisCommon/FakeBkgTools/FakeBkgTools/Database.h.

131{ reason += std::to_string(msg); return *this; }

◆ what()

virtual const char * FakeBkgTools::Database::XmlError::what ( ) const
inlineoverridevirtualnoexcept

Definition at line 132 of file PhysicsAnalysis/AnalysisCommon/FakeBkgTools/FakeBkgTools/Database.h.

132{ return reason.c_str(); }

Member Data Documentation

◆ location

const StringRef FakeBkgTools::Database::XmlError::location

◆ reason

std::string FakeBkgTools::Database::XmlError::reason

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