9.157 CStpDBAccessProtHDL::StpHandleError
Returns 0 or the errornumber according to errorlevel
Defined in: StpDBAccess.cpp
|
Syntax
|
LONG StpHandleError( LONG lRc );
LONG StpHandleError( LONG lRc, const SCString& scsPre, const SCString& scsRec );
LONG StpHandleError( LONG lRc, const SCString& scsPre, const SCString& scsRec, const SCString& scsRec_0 );
|
|
Parameters
|
lRc
Input errorcode for decision
scsPre
Input prefix to write to logfile
scsRec
Input record to write to logfile
scsRec_0
Input record to write to logfile
|
|
Cpmments
|
The errorlevel is set by StpSetErrorLevel. If the flag CSTPERR_AbortByErrors or CSTPERR_AbortByW_E is set StpHandleError returns the errornumber otherwise 0
StpHandleError( LONG lRc ) decides only according the settings of errorleven to return 0 or errorcode
StpHandleError( LONG lRc, const SCString& scsPre, const SCString& scsRec ) also adds a record to logfile beside the decision to return errorcode if CSTPERR_AbortByErrors or CSTPERR_AbortByW_E is set.
|
