rtxError.h File Reference

#include "rtxsrc/rtxContext.h"
#include "rtxsrc/rtxErrCodes.h"

Go to the source code of this file.

Defines

#define LOG_RTERR(pctxt, stat)   rtxErrSetData(pctxt,stat,__FILE__,__LINE__)
#define LOG_RTERRNEW(pctxt, stat)   rtxErrSetNewData(pctxt,stat,__FILE__,__LINE__)
#define OSRTASSERT(condition)   if (!(condition)) { rtxErrAssertionFailed(#condition,__LINE__,__FILE__); }
#define OSRTCHECKPARAM(condition)   if (condition) { /* do nothing */ }
#define LOG_RTERR1(pctxt, stat, a)   (a,LOG_RTERR (pctxt, stat),stat)
#define LOG_RTERRNEW1(pctxt, stat, a)   (a,LOG_RTERRNEW (pctxt, stat),stat)
#define LOG_RTERR2(pctxt, stat, a, b)   (a,b,LOG_RTERR (pctxt, stat),stat)
#define LOG_RTERRNEW2(pctxt, stat, a, b)   (a,b,LOG_RTERRNEW (pctxt, stat),stat)

Typedefs

typedef int(* OSErrCbFunc )(const char *ptext, void *cbArg_p)

Functions

OSBOOL rtxErrAddCtxtBufParm (OSCTXT *pctxt)
OSBOOL rtxErrAddDoubleParm (OSCTXT *pctxt, double errParm)
OSBOOL rtxErrAddErrorTableEntry (const char *const *ppStatusText, OSINT32 minErrCode, OSINT32 maxErrCode)
OSBOOL rtxErrAddElemNameParm (OSCTXT *pctxt)
OSBOOL rtxErrAddIntParm (OSCTXT *pctxt, int errParm)
OSBOOL rtxErrAddInt64Parm (OSCTXT *pctxt, OSINT64 errParm)
OSBOOL rtxErrAddStrParm (OSCTXT *pctxt, const char *pErrParm)
OSBOOL rtxErrAddStrnParm (OSCTXT *pctxt, const char *pErrParm, size_t nchars)
OSBOOL rtxErrAddUIntParm (OSCTXT *pctxt, unsigned int errParm)
OSBOOL rtxErrAddUInt64Parm (OSCTXT *pctxt, OSUINT64 errParm)
void rtxErrAssertionFailed (const char *conditionText, int lineNo, const char *fileName)
const char * rtxErrFmtMsg (OSRTErrInfo *pErrInfo, char *bufp, size_t bufsiz)
void rtxErrFreeParms (OSCTXT *pctxt)
char * rtxErrGetText (OSCTXT *pctxt, char *pBuf, size_t *pBufSize)
char * rtxErrGetTextBuf (OSCTXT *pctxt, char *pbuf, size_t bufsiz)
OSRTErrInfortxErrNewNode (OSCTXT *pctxt)
void rtxErrInit ()
int rtxErrReset (OSCTXT *pctxt)
void rtxErrLogUsingCB (OSCTXT *pctxt, OSErrCbFunc cb, void *cbArg_p)
void rtxErrPrint (OSCTXT *pctxt)
void rtxErrPrintElement (OSRTErrInfo *pErrInfo)
int rtxErrSetData (OSCTXT *pctxt, int status, const char *module, int lineno)
int rtxErrSetNewData (OSCTXT *pctxt, int status, const char *module, int lineno)
int rtxErrGetFirstError (const OSCTXT *pctxt)
int rtxErrGetLastError (const OSCTXT *pctxt)
OSSIZE rtxErrGetErrorCnt (const OSCTXT *pctxt)
int rtxErrGetStatus (const OSCTXT *pctxt)
int rtxErrResetLastErrors (OSCTXT *pctxt, int errorsToReset)
int rtxErrCopy (OSCTXT *pDestCtxt, const OSCTXT *pSrcCtxt)
int rtxErrAppend (OSCTXT *pDestCtxt, const OSCTXT *pSrcCtxt)
int rtxErrInvUIntOpt (OSCTXT *pctxt, OSUINT32 ident)

Detailed Description

Error handling function and macro definitions.