summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Exception.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2014-03-18 19:31:18 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2014-03-18 19:31:18 (GMT)
commitff565cd175fa5c4c1563496572aa27b0e9484acd (patch)
treeeaec4c2eef8e14b0c4351cd5d7e65d1c65b6a067 /c++/src/H5Exception.h
parent44fe3cc19b4e40672f1d7ab4fcd9cd58ded234e8 (diff)
downloadhdf5-ff565cd175fa5c4c1563496572aa27b0e9484acd.zip
hdf5-ff565cd175fa5c4c1563496572aa27b0e9484acd.tar.gz
hdf5-ff565cd175fa5c4c1563496572aa27b0e9484acd.tar.bz2
[svn-r24830] Purpose: HDFFV-8623
Description: Applied patch from user Jason Newton. JIRA issue HDFFV-8623, patch 9, improve c++ compatibility with exceptions. All additions of "throw()" are included. Exception::what() is not added because it is not necessary. It was suggested for the name, which follows stdlib. Platforms tested: Linux/ppc64 (ostrich) Linux/32 2.6 (jam) Linux/64 2.6 (koala)/PGI compilers
Diffstat (limited to 'c++/src/H5Exception.h')
-rw-r--r--c++/src/H5Exception.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/c++/src/H5Exception.h b/c++/src/H5Exception.h
index 30fe537..d747af3 100644
--- a/c++/src/H5Exception.h
+++ b/c++/src/H5Exception.h
@@ -81,7 +81,7 @@ class H5_DLLCPP Exception {
Exception( const Exception& orig);
// virtual Destructor
- virtual ~Exception();
+ virtual ~Exception() throw();
protected:
// Default value for detail_message
@@ -96,70 +96,70 @@ class H5_DLLCPP FileIException : public Exception {
public:
FileIException( const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
FileIException();
- virtual ~FileIException();
+ virtual ~FileIException() throw();
};
class H5_DLLCPP GroupIException : public Exception {
public:
GroupIException( const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
GroupIException();
- virtual ~GroupIException();
+ virtual ~GroupIException() throw();
};
class H5_DLLCPP DataSpaceIException : public Exception {
public:
DataSpaceIException(const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
DataSpaceIException();
- virtual ~DataSpaceIException();
+ virtual ~DataSpaceIException() throw();
};
class H5_DLLCPP DataTypeIException : public Exception {
public:
DataTypeIException(const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
DataTypeIException();
- virtual ~DataTypeIException();
+ virtual ~DataTypeIException() throw();
};
class H5_DLLCPP PropListIException : public Exception {
public:
PropListIException(const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
PropListIException();
- virtual ~PropListIException();
+ virtual ~PropListIException() throw();
};
class H5_DLLCPP DataSetIException : public Exception {
public:
DataSetIException(const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
DataSetIException();
- virtual ~DataSetIException();
+ virtual ~DataSetIException() throw();
};
class H5_DLLCPP AttributeIException : public Exception {
public:
AttributeIException(const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
AttributeIException();
- virtual ~AttributeIException();
+ virtual ~AttributeIException() throw();
};
class H5_DLLCPP ReferenceException : public Exception {
public:
ReferenceException(const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
ReferenceException();
- virtual ~ReferenceException();
+ virtual ~ReferenceException() throw();
};
class H5_DLLCPP LibraryIException : public Exception {
public:
LibraryIException(const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
LibraryIException();
- virtual ~LibraryIException();
+ virtual ~LibraryIException() throw();
};
class H5_DLLCPP IdComponentException : public Exception {
public:
IdComponentException(const H5std_string& func_name, const H5std_string& message = DEFAULT_MSG);
IdComponentException();
- virtual ~IdComponentException();
+ virtual ~IdComponentException() throw();
};
#ifndef H5_NO_NAMESPACE