xrootd
|
#include <XrdOucErrInfo.hh>
Public Member Functions | |
void | clear () |
Reset data and error information to null. Any appenadges are released. More... | |
void | setErrArg (unsigned long long cbarg=0) |
void | setErrCB (XrdOucEICB *cb, unsigned long long cbarg=0) |
int | setErrCode (int code) |
int | setErrInfo (int code, const char *emsg) |
int | setErrInfo (int code, const char *txtlist[], int n) |
int | setErrInfo (int code, XrdOucBuffer *buffP) |
void | setErrUser (const char *user) |
unsigned long long | getErrArg () |
char * | getMsgBuff (int &mblen) |
XrdOucEICB * | getErrCB () |
XrdOucEICB * | getErrCB (unsigned long long &ap) |
int | getErrInfo () |
const char * | getErrText () |
const char * | getErrText (int &ecode) |
int | getErrTextLen () |
const char * | getErrUser () |
XrdOucEnv * | getEnv () |
XrdOucEnv * | setEnv (XrdOucEnv *newEnv) |
const char * | getErrData () |
void | setErrData (const char *Data, int Offs=0) |
int | getErrMid () |
void | setErrMid (int mid) |
bool | extData () |
void | Reset () |
Reset object to no message state. Call this method to release appendages. More... | |
int | getUCap () |
void | setUCap (int ucval) |
Set user capabilties. More... | |
XrdOucErrInfo & | operator= (const XrdOucErrInfo &rhs) |
Assignment operator. More... | |
XrdOucErrInfo (const char *user=0, XrdOucEICB *cb=0, unsigned long long ca=0, int mid=0, int uc=0) | |
XrdOucErrInfo (const char *user, XrdOucEnv *envp, int uc=0) | |
XrdOucErrInfo (const char *user, int MonID, int uc=0) | |
virtual | ~XrdOucErrInfo () |
Destructor. More... | |
Protected Attributes | |
XrdOucEI | ErrInfo |
XrdOucEICB * | ErrCB |
union { | |
unsigned long long ErrCBarg | |
XrdOucEnv * ErrEnv | |
}; | |
int | mID |
short | dOff |
short | reserved |
XrdOucBuffer * | dataBuff |
The XrdOucErrInfo class is used to communicate data, error, and callback information between plug-ins.
|
inline |
Constructor
user | - Pointer to he user string in stable storage. |
cb | - Pointer to the callback object (zero if none). |
ca | - The callback argument. |
mid | - The monitoring identifier. |
uc | - The user capabilities. |
|
inline |
Constructor
user | - Pointer to he user string in stable storage. |
envp | - Pointer to the error environment. |
uc | - The user capabilities. |
|
inline |
Constructor
user | - Pointer to he user string in stable storage. |
MonID | - The monitoring identifier. |
uc | - The user capabilities. |
|
inlinevirtual |
Destructor.
References Reset().
|
inline |
Reset data and error information to null. Any appenadges are released.
References XrdOucEI::clear(), ErrInfo, and Reset().
|
inline |
|
inline |
|
inline |
|
inline |
Get the callback object.
References ErrCB.
Referenced by XrdOucCallBack::Allowed().
|
inline |
|
inline |
Get the error tracing data.
References dOff, ErrInfo, and XrdOucEI::message.
|
inline |
Get the error code.
References XrdOucEI::code, and ErrInfo.
|
inline |
|
inline |
Get a pointer to the error text.
References dataBuff, ErrInfo, and XrdOucEI::message.
|
inline |
Get a pointer to the error text and the error code.
ecode | - Reference to where the error code is to be returned. |
References XrdOucEI::code, dataBuff, ErrInfo, and XrdOucEI::message.
|
inline |
Get the error text length (optimized for external buffers).
References dataBuff, ErrInfo, and XrdOucEI::message.
|
inline |
Get a pointer to user information.
References ErrInfo, and XrdOucEI::user.
|
inline |
Get the pointer to the internal message buffer along with its size.
mblen | - Reference to where the size it to be returned. |
References ErrInfo, and XrdOucEI::message.
|
inline |
|
inline |
|
inline |
Reset object to no message state. Call this method to release appendages.
References XrdOucEI::code, dataBuff, ErrInfo, and XrdOucEI::message.
Referenced by clear(), and ~XrdOucErrInfo().
Set the error environment and return the previous environment. This call destroys any callback information that may have existed.
newEnv | - Pointer to the new error environment. |
|
inline |
|
inline |
|
inline |
Set error code. Any existing error text remains intact.
code | - The error number describing the error. |
References XrdOucEI::code, and ErrInfo.
|
inline |
Set the error tracing data (this is always placed in the internal buffer)
Data | - Pointer to the error tracing data. |
Offs | - Ofset into the message buffer where the data is to be set. |
References dOff, ErrInfo, XrdOucEI::message, and strlcpy().
|
inline |
Set error code and error text.
code | - The error number describing the error. |
emsg | - The error message text. |
References XrdOucEI::code, dataBuff, ErrInfo, XrdOucEI::message, and strlcpy().
|
inline |
Set error code and error text.
code | - The error number describing the error. |
txtlist | - A vector of error message text segments. |
n | - The number of valid elements in txtlist. |
References XrdOucEI::code, dataBuff, ErrInfo, XrdOucEI::message, and strlcpy().
|
inline |
Set error code and error text.
code | - The error number describing the error. |
buffP | - Pointer to the data buffer holding the error text, This object takes ownership of the buffer and recycles it. |
References XrdOucEI::code, dataBuff, and ErrInfo.
|
inline |
|
inline |
Set user pointer.
user | - Pointer to a stable storage area containing the username. |
References ErrInfo, and XrdOucEI::user.
|
inline |
Set user capabilties.
References ErrInfo, and XrdOucEI::ucap.
union { ... } |
|
protected |
Referenced by extData(), getErrText(), getErrTextLen(), operator=(), Reset(), and setErrInfo().
|
protected |
Referenced by getErrData(), operator=(), and setErrData().
|
protected |
Referenced by getEnv(), getErrCB(), operator=(), setEnv(), and setErrCB().
unsigned long long XrdOucErrInfo::ErrCBarg |
Referenced by getErrArg(), getErrCB(), operator=(), setErrArg(), and setErrCB().
|
protected |
Referenced by clear(), getErrData(), getErrInfo(), getErrText(), getErrTextLen(), getErrUser(), getMsgBuff(), getUCap(), operator=(), Reset(), setErrCode(), setErrData(), setErrInfo(), setErrUser(), and setUCap().
|
protected |
Referenced by getErrMid(), operator=(), and setErrMid().
|
protected |