Logo ROOT  
Reference Guide
BidirMMapPipe_impl::BidirMMapPipeException Class Reference

exception to throw if low-level OS calls go wrong

Author
Manuel Schiller manue.nosp@m.l.sc.nosp@m.hille.nosp@m.r@ni.nosp@m.khef..nosp@m.nl
Date
2013-07-07

Definition at line 45 of file BidirMMapPipe.cxx.

Public Member Functions

 BidirMMapPipeException (const char *msg, int err)
 constructor taking error code, hint on operation (msg) More...
 
virtual const char * what () const noexcept
 return a destcription of what went wrong More...
 

Private Types

enum  { s_sz = 256 }
 

Static Private Member Functions

static int dostrerror_r (int err, char *buf, std::size_t sz, int(*f)(int, char *, std::size_t))
 for the POSIX version of strerror_r More...
 
static int dostrerror_r (int, char *, std::size_t, char *(*f)(int, char *, std::size_t))
 for the GNU version of strerror_r More...
 

Private Attributes

char m_buf [s_sz]
 buffer containing the error message More...
 
Inheritance diagram for BidirMMapPipe_impl::BidirMMapPipeException:
[legend]

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
s_sz 

length of buffer

Definition at line 48 of file BidirMMapPipe.cxx.

Constructor & Destructor Documentation

◆ BidirMMapPipeException()

BidirMMapPipe_impl::BidirMMapPipeException::BidirMMapPipeException ( const char *  msg,
int  err 
)

constructor taking error code, hint on operation (msg)

Definition at line 67 of file BidirMMapPipe.cxx.

Member Function Documentation

◆ dostrerror_r() [1/2]

static int BidirMMapPipe_impl::BidirMMapPipeException::dostrerror_r ( int  err,
char *  buf,
std::size_t  sz,
int(*)(int, char *, std::size_t)  f 
)
inlinestaticprivate

for the POSIX version of strerror_r

Definition at line 54 of file BidirMMapPipe.cxx.

◆ dostrerror_r() [2/2]

int BidirMMapPipe_impl::BidirMMapPipeException::dostrerror_r ( int  err,
char *  buf,
std::size_t  sz,
char *(*)(int, char *, std::size_t)  f 
)
staticprivate

for the GNU version of strerror_r

Definition at line 84 of file BidirMMapPipe.cxx.

◆ what()

virtual const char * BidirMMapPipe_impl::BidirMMapPipeException::what ( ) const
inlinevirtualnoexcept

return a destcription of what went wrong

Definition at line 64 of file BidirMMapPipe.cxx.

Member Data Documentation

◆ m_buf

char BidirMMapPipe_impl::BidirMMapPipeException::m_buf[s_sz]
private

buffer containing the error message

Definition at line 51 of file BidirMMapPipe.cxx.


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