#include <XrdSsiErrInfo.hh>
The XrdSsiErrInfo object is used to hold error information for many ssi client-oriented requests.
◆ XrdSsiErrInfo() [1/2]
◆ XrdSsiErrInfo() [2/2]
XrdSsiErrInfo::XrdSsiErrInfo |
( |
| ) |
|
|
inline |
Constructor and Destructor.
◆ ~XrdSsiErrInfo()
XrdSsiErrInfo::~XrdSsiErrInfo |
( |
| ) |
|
|
inline |
◆ Clr()
void XrdSsiErrInfo::Clr |
( |
| ) |
|
|
inline |
◆ Errno2Text()
const char * XrdSsiErrInfo::Errno2Text |
( |
int |
ecode | ) |
|
|
private |
◆ Get() [1/2]
const std::string & XrdSsiErrInfo::Get |
( |
| ) |
const |
|
inline |
Get current error text.
- Returns
- The error text.
References errText.
◆ Get() [2/2]
const std::string & XrdSsiErrInfo::Get |
( |
int & |
eNum | ) |
const |
|
inline |
Get current error information.
- Parameters
-
eNum | place where the error number is to be placed. |
- Returns
- The error text and the error number value.
References errNum, and errText.
◆ GetArg()
int XrdSsiErrInfo::GetArg |
( |
| ) |
const |
|
inline |
Get current error argument.
- Returns
- the error argument value.
References errArg.
◆ hasError()
bool XrdSsiErrInfo::hasError |
( |
| ) |
const |
|
inline |
Check if there is an error.
- Returns
- True if an error exists and false otherwise.
References errNum.
◆ isOK()
bool XrdSsiErrInfo::isOK |
( |
| ) |
const |
|
inline |
Check if there is no error.
- Returns
- True if no error exists and false otherwise.
References errNum.
◆ operator=()
◆ Set() [1/2]
void XrdSsiErrInfo::Set |
( |
const char * |
eMsg = 0 , |
|
|
int |
eNum = 0 , |
|
|
int |
eArg = 0 |
|
) |
| |
|
inline |
Set new error information. There are two obvious variations.
- Parameters
-
eMsg | pointer to a string describing the error. If nil, the eNum is taken as errno and converted to corresponding description. |
eNum | the error number associated with the error. |
eArg | the error argument, if any (see XrdSsiService::Provision()). |
References errArg, Errno2Text(), errNum, and errText.
Referenced by XrdSsiStream::GetBuff(), XrdSsiProvider::GetService(), operator=(), XrdSsiStream::SetBuff(), XrdSsiStream::SetBuff(), and XrdSsiErrInfo().
◆ Set() [2/2]
void XrdSsiErrInfo::Set |
( |
const std::string & |
eMsg, |
|
|
int |
eNum = 0 , |
|
|
int |
eArg = 0 |
|
) |
| |
|
inline |
◆ errArg
int XrdSsiErrInfo::errArg |
|
private |
◆ errNum
int XrdSsiErrInfo::errNum |
|
private |
◆ errText
std::string XrdSsiErrInfo::errText |
|
private |
The documentation for this class was generated from the following file: