PxMessageFunDefault()

Default message handling routine.

APPLIES TO

8.2.0

SYNOPSIS
void PxMessageFunDefault (PxMessageClass_t msg_class, PxError_t err, PxArg_t arg1, PxArg_t arg2);
ARGUMENTS
msg_class

PXROS error class

err

PXROS error number

arg1

Optional argument

arg2

Optional argument

DESCRIPTION

PxMessageFunDefault is the default message handling routine. This service calls PxAbort for messages of class PXFatal and ignores other classes.

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
  • No restrictions.

SEE ALSO
USAGE
#include "pxdef.h"

PxMessageFunDefault(PXLogError, PXERR_ILLEGAL_SERVICE_CALLED, 0, 0);