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
cls

Error class

err

PXROS error code

arg1

First argument to error message format string

arg2

Second argument to error message format string

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 type PxMessageClass_t and may have one of the following values (V):

    • PXWarning

    • PXError

    • PXLogError

    • PXFatal

  • The PXROS-HR error number err must be greater or equal PXERR_NOERROR and lower than PXERR_LAST_ERRNO (V)

After call
  • No checks necessary.

Best Practice
  • If no application specific error function is installed, the default error function PxMessageFunDefault will call PxPanic(), if cls is greater than PXLogError.

SEE ALSO
USAGE
#include "pxdef.h"

PxMessage(PXLogError, PXERR_ILLEGAL_SERVICE_CALLED, 0, 0);