PxMessage()
Message by current message function.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
void PxMessage (PxMessageClass_t cls, PxError_t err, PxArg_t arg1, PxArg_t arg2);
- ARGUMENTS
|
|
|
|
|
|
|
- DESCRIPTION
-
PxMessage reports problem err at class cls through the current PXROS error reporting function. cls may be chosen as PXWarning, PXLogError, PXError or PXFatal.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
The PXROS-HR error class given in
cls
must be of typePxMessageClass_t
and may have one of the following values (V):-
PXWarning
-
PXError
-
PXLogError
-
PXFatal
-
-
The PXROS-HR error number
err
must be greater or equalPXERR_NOERROR
and lower thanPXERR_LAST_ERRNO
(V)
-
- After call
-
-
No checks necessary.
-
- Best Practice
-
-
If no application specific error function is installed, the default error function
PxMessageFunDefault
will callPxPanic()
, ifcls
is greater thanPXLogError
.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxMessage(PXLogError, PXERR_ILLEGAL_SERVICE_CALLED, 0, 0);