source: CONFIG/publications/ICOLMDZORINCA_CO2_Transport_GMD_2023/XIOS/src/io/netCdfException.hpp @ 6607

Last change on this file since 6607 was 6607, checked in by acosce, 10 months ago

XIOS used for ICOLMDZORINCA_CO2_Transport_GMD_2023

File size: 716 bytes
Line 
1/*!
2   \file netCdfException.hpp
3   \author Ha NGUYEN
4   \date 08 Oct 2014
5   \since 07 Oct 2014
6
7   \brief Exception management.
8 */
9#ifndef __NETCDF_EXCEPTION_HPP__
10#define __NETCDF_EXCEPTION_HPP__
11
12#include <iostream>
13#include <exception>
14
15namespace xios
16{
17/*!
18\class CNetCdfException
19 This class manages exceptions risen by CNetCdfInterface
20*/
21class CNetCdfException : public virtual std::exception
22{
23public:
24  CNetCdfException(const std::string& ss) : exStr_(ss) {}
25  CNetCdfException(const CNetCdfException& netEx) : exStr_(netEx.exStr_) {}
26  ~CNetCdfException() throw() {}
27  const char* what() const throw() { return exStr_.c_str();}
28protected:
29  std::string exStr_;
30};
31
32}
33
34#endif // __NETCDF_EXCEPTION_HPP__
Note: See TracBrowser for help on using the repository browser.