Function PGAError

Function Documentation

void PGAError(PGAContext *ctx, char *msg, int level, int datatype, void *data)

Report error messages.

Description

Prints out the message supplied, and the value of a piece of data. Terminates if PGA_FATAL. See Constants for Error Printing Flags for the level constants and Miscellaneous in the user guide for more information.

Example

PGAContext *ctx;
int         val;

...
PGAError
 ( ctx, "Some Non Fatal Error: val = "
 , PGA_WARNING, PGA_INT, (void *) &val
 );

PGAError (ctx, "A Fatal Error!", PGA_FATAL, PGA_VOID, NULL);

Parameters
  • ctx – context variable

  • msg – the error message to print

  • level – indicate the error’s severity

  • datatype – the data type of the following argument

  • data – the address of the data to be written out, cast as a void pointer

Returns

None