The Error class provides configuration options for the error reporting module of the HLU library.
Header file: ncarg/hlu/hlu.h Class name: errorClass Class pointer: <Not referenceable> Fortran class function: <Not referenceable> Superclass: Base Composite classes: <None> Name: ErrorNote: Only one error object is created for an hlu program, and it is always named Error.
Type name: NhlTErrorTypes Definition: typedef enum _NhlErrType{ NhlFATAL = -4, /* "FATAL" */ NhlWARNING = -3, /* "WARNING" */ NhlINFO = -2, /* "INFO" */ NhlNOERROR = -1 /* "NOERROR" */ } NhlErrorTypes;
+---------------------------------------------------------------+ | Error resource set | |---------------------------------------------------------------| | NAME TYPE ACCESS | | CLASS DEFAULT | |===============================================================| | errBuffer NhlTBoolean RSG | | ErrBuffer False | |---------------------------------------------------------------| | errLevel NhlTErrorTypes RSG | | ErrLevel NhlWARNING | |---------------------------------------------------------------| | errPrint NhlTBoolean RSG | | ErrPrint True | |---------------------------------------------------------------| | errFileName NhlTString RSG | | ErrFileName "stderr" | |---------------------------------------------------------------| | *errFilePtr NhlTPointer SG | | ErrFilePtr NULL | |---------------------------------------------------------------| | **errUnitNumber NhlTInteger RSG | | ErrUnitNumber 74 | +---------------------------------------------------------------+* errFilePtr is only valid in "C" mode.
The Error object works in two modes: C mode and Fortran mode. Most of the resources work the same in both modes. The errBuffer, errLevel, and errPrint resources are not affected by the language mode.
The language mode that the Error object uses is determined by how the HLU library is initialized. If the library is initialized using the Fortran initialization function NHLFINITIALIZE, or NHLFOPEN, then the Error object uses Fortran mode; otherwise it uses C mode.
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?