The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::NTuple::DiskBuffer::Error Class Reference

Any I/O or format problem, carrying the file it happened on. More...

#include </builds/gaudi/Gaudi/GaudiUtils/include/Gaudi/NTuple/DiskBuffer.h>

Inheritance diagram for Gaudi::NTuple::DiskBuffer::Error:
Collaboration diagram for Gaudi::NTuple::DiskBuffer::Error:

Public Member Functions

 Error (const std::filesystem::path &path, std::string_view what, int err=0)
const std::filesystem::path & path () const
int code () const

Private Attributes

std::filesystem::path m_path
int m_code

Detailed Description

Any I/O or format problem, carrying the file it happened on.

Definition at line 50 of file DiskBuffer.h.

Constructor & Destructor Documentation

◆ Error()

Error::Error ( const std::filesystem::path & path,
std::string_view what,
int err = 0 )

Definition at line 56 of file NTupleDiskBuffer.cpp.

57 : std::runtime_error( std::string( what ) + ": " + path.string() +
58 ( err ? std::string( " (" ) + std::strerror( err ) + ")" : "" ) )
59 , m_path( path )
60 , m_code( err ) {}
const std::filesystem::path & path() const
Definition DiskBuffer.h:53
std::filesystem::path m_path
Definition DiskBuffer.h:57

Member Function Documentation

◆ code()

int Gaudi::NTuple::DiskBuffer::Error::code ( ) const
inline

Definition at line 54 of file DiskBuffer.h.

54{ return m_code; }

◆ path()

const std::filesystem::path & Gaudi::NTuple::DiskBuffer::Error::path ( ) const
inline

Definition at line 53 of file DiskBuffer.h.

53{ return m_path; }

Member Data Documentation

◆ m_code

int Gaudi::NTuple::DiskBuffer::Error::m_code
private

Definition at line 58 of file DiskBuffer.h.

◆ m_path

std::filesystem::path Gaudi::NTuple::DiskBuffer::Error::m_path
private

Definition at line 57 of file DiskBuffer.h.


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