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

This propagates an error message. More...

#include <Database.h>

Inheritance diagram for FakeBkgTools::Database::GenericError:
Collaboration diagram for FakeBkgTools::Database::GenericError:

Public Member Functions

GenericErroroperator<< (const char *msg)
GenericErroroperator<< (const std::string &msg)
GenericErroroperator<< (int msg)
virtual const char * what () const noexcept override

Public Attributes

std::string reason

Detailed Description

This propagates an error message.

Definition at line 135 of file Database.h.

Member Function Documentation

◆ operator<<() [1/3]

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

Definition at line 138 of file Database.h.

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

◆ operator<<() [2/3]

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

Definition at line 139 of file Database.h.

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

◆ operator<<() [3/3]

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

Definition at line 140 of file Database.h.

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

◆ what()

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

Definition at line 141 of file Database.h.

141{ return reason.c_str(); }

Member Data Documentation

◆ reason

std::string FakeBkgTools::Database::GenericError::reason

Definition at line 137 of file Database.h.


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