[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference

ERROR LOGGING (PHCL,WSCL,STCL,ARCL)

Purpose

Use Error Logging to print an error message to the specified error file. When your application invokes Error Logging, the graPHIGS API writes the specified error message along with the name of the function which caused the error to the specified file. If the graPHIGS API cannot open the specified file or the file is blank, then the graPHIGS API logs the error to the console from which the application was started.

This subroutine is available only to an Error Handling function.

Language Bindings

C

perr_log (error_num, func_num, error_file)

Input Parameters

Pint error_num
Error number.

Pint func_num
Identifier of function that detected the error (see phigs.h include file).

const char *error_file
Name of the error file.

FORTRAN

PERLOG (errnr, fctid, errfil)

Input Parameters

integer errnr
Error number.

integer fctid
Function identification (see PHIGS include file).

integer errfil
Error file.

Errors

None

Related Subroutines

  • Error Handling

  • Set Error Handling

  • Set Error Handling Mode

  • [ Previous | Next | Contents | Glossary | Home | Search ]