Error_handling(3NCARG) | NCAR GRAPHICS | Error_handling(3NCARG) |
Error_handling - A set of routines for error handling in NCAR Graphics.
ENTSR - Enters recovery mode.
EPRIN - Prints the current error message.
ERROF - Turns off the internal error flag.
FDUM - A dump routine - the default version just RETURNS.
ICFELL - Checks for an outstanding error condition.
ICLOEM - Computes the real length of its character-string argument (ignoring
blanks on the end)
NERRO - Gets the current value of the internal error flag.
RETSR - Restores a previous value of the internal error flag.
SEMESS - Gets a specified portion of the current error message.
SETER - Called by NCAR Graphics routines to report error conditions.
#include <ncarg/ncargC.h>
c_entsr
c_eprin
c_errof
c_icfell
c_icloem
c_nerro
c_retsr
c_semess
c_seter
There are specific conventions for the use of SETER within NCAR Graphics, as follows:
Note: These conventions are being adopted as of December 2, 1993, and represent a goal for the future. The current situation is somewhat muddled: In some utilities, all SETER calls are fatal ones. In other utilities, some SETER calls are fatal and some are not. In other utilities, no SETER calls are fatal. In general, errors at a lower level are not detected and passed back up the call chain. Users have complained (and rightly so) that error recovery is, in general, not possible; observance of these conventions should help to fix the situation.
Further note: As of March 30, 1994, the situation has improved markedly. CONPACK and all utilities referenced by it have been updated to follow the guidelines given above and work is proceeding on other utilities.
There is one sticky area in which questions remains to be answered: Sometimes, when an error condition occurs during execution of a utility routine that has changed the internal state of GKS or SPPS, it has not been possible to restore the state of those packages to exactly what it was before that routine was entered. In some cases, better bookkeeping would allow restoration to be done; in other cases, though, restoration would involve calling a routine that could generate a call to SETER, which would cause a STOP. In the latter cases, I have not yet worked out a good solution. For the moment, therefore, the situation is this: if you call an NCAR Graphics utility with recovery mode turned on and, when you get control back, you find that an error has occurred, you must be prepared to deal with the possibility that at least the following things might been changed: 1) the current SET call; 2) the current polyline color index; 3) the current polymarker color index; 4) the current text color index; 5) the current fill area color index; 6) the current dash pattern.
To use the Error_handling C or Fortran routines, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
Online: entsr, eprin, errof, fdum, icfell, icloem, nerro, retsr, semess, seter, ncarg_cbind
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
March 1994 | UNIX |