XRootD
XrdHttpReadRangeHandler::Error Struct Reference

#include <XrdHttpReadRangeHandler.hh>

+ Collaboration diagram for XrdHttpReadRangeHandler::Error:

Public Member Functions

 operator bool () const
 
void reset ()
 
void set (int rc, const std::string &m)
 

Public Attributes

std::string errMsg
 
bool errSet {false}
 
int httpRetCode {0}
 

Detailed Description

Error structure for storing error codes and message. operator bool() can be used to query if a value is set.

Definition at line 74 of file XrdHttpReadRangeHandler.hh.

Member Function Documentation

◆ operator bool()

XrdHttpReadRangeHandler::Error::operator bool ( ) const
inlineexplicit

Definition at line 79 of file XrdHttpReadRangeHandler.hh.

References errSet.

◆ reset()

void XrdHttpReadRangeHandler::Error::reset ( )
inline

Definition at line 84 of file XrdHttpReadRangeHandler.hh.

References errMsg, errSet, and httpRetCode.

Referenced by XrdHttpReadRangeHandler::reset().

+ Here is the caller graph for this function:

◆ set()

void XrdHttpReadRangeHandler::Error::set ( int  rc,
const std::string &  m 
)
inline

Definition at line 81 of file XrdHttpReadRangeHandler.hh.

82  { httpRetCode = rc; errMsg = m; errSet = true; }

References errMsg, errSet, and httpRetCode.

Referenced by XrdHttpReadRangeHandler::NextReadList(), XrdHttpReadRangeHandler::NotifyError(), XrdHttpReadRangeHandler::NotifyReadResult(), and XrdHttpReadRangeHandler::SetFilesize().

+ Here is the caller graph for this function:

Member Data Documentation

◆ errMsg

std::string XrdHttpReadRangeHandler::Error::errMsg

Definition at line 77 of file XrdHttpReadRangeHandler.hh.

Referenced by reset(), and set().

◆ errSet

bool XrdHttpReadRangeHandler::Error::errSet {false}

Definition at line 75 of file XrdHttpReadRangeHandler.hh.

Referenced by operator bool(), reset(), and set().

◆ httpRetCode

int XrdHttpReadRangeHandler::Error::httpRetCode {0}

Definition at line 76 of file XrdHttpReadRangeHandler.hh.

Referenced by reset(), and set().


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