NetCDF-C++ 4.3.2
Loading...
Searching...
No Matches
netCDF::exceptions::NcException Class Reference

Base object is thrown if a netCDF exception is encountered. More...

#include "ncException.h"

Inheritance diagram for netCDF::exceptions::NcException:
Collaboration diagram for netCDF::exceptions::NcException:

Public Member Functions

 NcException (const char *complaint, const char *fileName, int lineNumber)
 NcException (const NcException &e) throw ()
 NcException (int errorCode, const char *complaint, const char *fileName, int lineNumber)
int errorCode () const throw ()
NcException & operator= (const NcException &e) throw ()
const char * what () const override throw ()

Detailed Description

Base object is thrown if a netCDF exception is encountered.

An unsatisfactory return from a call to one of the netCDF C-routines generates an exception using an object inheriting this class. All other netCDF-related errors including those originating in the C++ binding, generates an NcException.

Definition at line 24 of file ncException.h.

Constructor & Destructor Documentation

◆ NcException() [1/3]

NcException::NcException ( const char * complaint,
const char * fileName,
int lineNumber )

Definition at line 23 of file ncException.cpp.

◆ NcException() [2/3]

NcException::NcException ( int errorCode,
const char * complaint,
const char * fileName,
int lineNumber )

Definition at line 40 of file ncException.cpp.

◆ NcException() [3/3]

NcException::NcException ( const NcException & e)
throw ( )

Definition at line 57 of file ncException.cpp.

◆ ~NcException()

NcException::~NcException ( )
throw ( )
virtual

Definition at line 81 of file ncException.cpp.

Member Function Documentation

◆ errorCode()

int NcException::errorCode ( ) const
throw ( )

Definition at line 91 of file ncException.cpp.

◆ operator=()

NcException & NcException::operator= ( const NcException & e)
throw ( )

Definition at line 68 of file ncException.cpp.

◆ what()

const char * NcException::what ( ) const
throw ( )
override

Definition at line 86 of file ncException.cpp.


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

Return to the Main Unidata NetCDF page.
Generated on for NetCDF-C++. NetCDF is a Unidata library.