blob: f10daf1201751ed371415e504b3757bb90b2e92c [file] [log] [blame]
.TH PGAError 6 "05/01/95" " " "PGAPack"
.SH NAME
PGAError \- reports error messages. Prints out the message supplied, and
the value of a piece of data. Terminates if PGA_FATAL.
.SH INPUT PARAMETERS
.PD 0
.TP
ctx
- context variable
.PD 0
.TP
msg
- the error message to print
.PD 0
.TP
level
- PGA_WARNING or PGA_FATAL to indicate the error's severity
.PD 0
.TP
datatype
- the data type of the following argument
.PD 0
.TP
data
- the address of the data to be written out, cast as a void
pointer
.PD 1
.SH OUTPUT PARAMETERS
.PD 0
.TP
none
.PD 1
.SH SYNOPSIS
.nf
#include "pgapack.h"
void PGAError(ctx, msg, level, datatype, data)
PGAContext *ctx
char *msg
int level
int datatype
void *data
.fi
.SH LOCATION
system.c
.SH EXAMPLE
.nf
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);
.fi