netcdfpp
Header-only NetCDF C++ wrapper
Loading...
Searching...
No Matches
Public Member Functions | List of all members
netCDF::Exception Class Referencefinal

Exception thrown when a NetCDF-C call fails. More...

#include <netcdfpp.h>

Public Member Functions

 Exception (int r, std::string s)
 Creates an exception with the NetCDF return code and a complete message.
 
int return_code () const
 Returns the NetCDF-C return code that caused the exception.
 

Detailed Description

Exception thrown when a NetCDF-C call fails.

The message includes the NetCDF error text and the path of the affected file, group, variable, dimension, attribute, or user-defined type.

Constructor & Destructor Documentation

◆ Exception()

netCDF::Exception::Exception ( int  r,
std::string  s 
)
inlineexplicit

Creates an exception with the NetCDF return code and a complete message.

Member Function Documentation

◆ return_code()

int netCDF::Exception::return_code ( ) const
inline

Returns the NetCDF-C return code that caused the exception.


The documentation for this class was generated from the following file: