1 #ifndef __XRDSSIERRINFO_HH__
2 #define __XRDSSIERRINFO_HH__
48 void Clr() {errText.clear(); errArg = errNum = 0;}
59 std::string &
Get(
int &eNum)
const {eNum = errNum;
return errText;}
68 std::string &
Get()
const {
return errText;}
92 bool isOK()
const {
return errNum == 0;}
103 void Set(
const char *
eMsg=0,
int eNum=0,
int eArg=0)
109 void Set(
const std::string &
eMsg,
int eNum=0,
int eArg=0)
110 {errText = (
eMsg.empty() ? Errno2Text(eNum) :
eMsg);
120 {
if (&rhs !=
this)
Set(rhs.errText, rhs.errNum, rhs.errArg);
129 {
Set(oP.errText, oP.errNum, oP.errArg);}
140 const char* Errno2Text(
int ecode);
XrdSsiErrInfo(XrdSsiErrInfo const &oP)
Copy constructor.
void Clr()
Reset and clear error information.
void Set(const char *eMsg=0, int eNum=0, int eArg=0)
const std::string & Get() const
const std::string & Get(int &eNum) const
void Set(const std::string &eMsg, int eNum=0, int eArg=0)
XrdSsiErrInfo & operator=(XrdSsiErrInfo const &rhs)
Assignment operator.
XrdSsiErrInfo()
Constructor and Destructor.