Class NcError
This class provides control for netCDF error handling. Declaring an
NcError object temporarily changes the error-handling behavior
for all netCDF classes until the NcError object is destroyed
(typically by going out of scope), at which time the previous
error-handling behavior is restored.
Public Member Functions
NcError( Behavior b = verbose_fatal )- The constructor saves the previous error state for restoration when the
destructor is invoked, and sets a new specified state. Valid error
states are
NcError::silent_nonfatal,
NcError::verbose_nonfatal, NcError::silent_fatal, or
NcError::verbose_fatal, to control whether error messages are
output from the underlying library and whether such messages are fatal
or nonfatal.
~NcError( void )- Destructor, restores previous error state.
int get_err( void )- Returns most recent error, as enumerated in netcdf.h.