#include #include #include #ifndef NcExceptionClasses #define NcExceptionClasses namespace netCDF { //! Exception classes. /*! These exceptions are thrown if the netCDF-4 API encounters an error. */ namespace exceptions { /*! Default object 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. */ class NcException : public std::exception { public: NcException(const std::string& exceptionName,const std::string& complaint,const char* file,int line); virtual ~NcException() throw(); void what() { // std::cout<