Extension: Json and NetCDF utilities
#include "dg/file/file.h" (includes both Json and NetCDF utilities)
|
Empty utitlity class that handles return values of netcdf functions and throws NC_Error(status) if( status != NC_NOERR) More...
Public Member Functions | |
NC_Error_Handle | operator= (int err) |
Construct from error code. More... | |
NC_Error_Handle | operator() (int err) |
Construct from error code. More... | |
Empty utitlity class that handles return values of netcdf functions and throws NC_Error(status) if( status != NC_NOERR)
For example
This allows for a C++ style error handling of netcdf errors in that the program either terminates if the NC_Error is not caught or does something graceful in a try catch statement.
|
inline |
Construct from error code.
throws an NC_Error if err is not a success
err | netcdf error code |
|
inline |
Construct from error code.
throws an NC_Error if err is not a success
err | netcdf error code |