PGAError(3)

PGAError3

Reports error messages. prints out the message supplied, and the value of a piece of data. terminates if pga_fatal.

Part of PGAError(6).

Usage

PGAContext *ctx

char *msg

int level

int datatype

void *data

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

Location

system.c

Examples

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

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.