pgaerror — reports error messages. Prints out the message supplied, and

Input parameters

ctx
- context variable
msg
- the error message to print
level
- PGA_WARNING or PGA_FATAL to 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

Output parameters

none

Synopsis


#include "pgapack.h"
void PGAError(ctx, msg, level, datatype, data)
PGAContext *ctx
char *msg
int level
int datatype
void *data

Location

system.c

Example

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);