XrdOucERoute Class Reference

#include <XrdOucERoute.hh>

List of all members.

Public Member Functions

 XrdOucERoute ()
 ~XrdOucERoute ()

Static Public Member Functions

static int Format (char *buff, int blen, int ecode, const char *etxt1, const char *etxt2=0)
static int Route (XrdSysError *elog, XrdOucStream *estrm, const char *esfx, int ecode, const char *etxt1, const char *etxt2=0)

Constructor & Destructor Documentation

XrdOucERoute::XrdOucERoute (  )  [inline]
XrdOucERoute::~XrdOucERoute (  )  [inline]

Member Function Documentation

static int XrdOucERoute::Format ( char *  buff,
int  blen,
int  ecode,
const char *  etxt1,
const char *  etxt2 = 0 
) [static]

Format an error message into a buffer in the form of: "Unable to <etxt1> <etxt2>; <syserror[enum]>"

Parameters:
buff pointer to the buffer where the msg is to be placed.
blen the length of the buffer.
ecode the error number associated iwth the error.
etxt1 associated text token #1.
etxt2 associated text token #2 (optional).
Returns:
<int> The number of characters placed in the buffer less null.
static int XrdOucERoute::Route ( XrdSysError elog,
XrdOucStream estrm,
const char *  esfx,
int  ecode,
const char *  etxt1,
const char *  etxt2 = 0 
) [static]

Format an error message using Format() and route it as requested.

Parameters:
elog pointer to the XrdSysError object to use to route the message to the log, If null, the message isn't routed there.
estrm pointer to the XrdOucStrean object which is to receive the error message text or null if none exists.
esfx The suffix identifier to use when routing to the log.
enum the error number associated iwth the error.
etxt1 associated text token #1.
etxt2 associated text token #2 (optional).
Returns:
<int> The -abs(enum) or -1 if enum is zero.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 16 Oct 2020 for xrootd by  doxygen 1.6.1