summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CommonFG.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2001-03-02 18:53:15 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2001-03-02 18:53:15 (GMT)
commit42e15a3d6af05b67c07de7dcd579db39504fffa7 (patch)
treeff3bac3026121f15f26ba725c3c113c8f074b1f6 /c++/src/H5CommonFG.cpp
parentcc647cfe5f492d8810e5b1a6444a37c267c591c4 (diff)
downloadhdf5-42e15a3d6af05b67c07de7dcd579db39504fffa7.zip
hdf5-42e15a3d6af05b67c07de7dcd579db39504fffa7.tar.gz
hdf5-42e15a3d6af05b67c07de7dcd579db39504fffa7.tar.bz2
[svn-r3540] Purpose:
Feasibility improvement Description: - Some member functions in class Exception can be called without an Exception instance exits, but because they are not static, they cannot. - Many exception throwings don't provide any information to callers. Solution: - Add 'static' to several member functions in class Exception. - Added <class name::function name> to some exceptions thrown in H5File.cpp and H5FcreatProp.cpp. I'm trying this for users' comments. More information may be added later and to all exceptions. - Changed the comment line for emacs editor to: // C++ informative line for the emacs editor: -*- C++ -*- because... I'd rather not say that the code "may look like C" :-) Platforms tested: Linux (gcc version egcs-2.91.66)
Diffstat (limited to 'c++/src/H5CommonFG.cpp')
-rw-r--r--c++/src/H5CommonFG.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp
index 02dad70..000729b 100644
--- a/c++/src/H5CommonFG.cpp
+++ b/c++/src/H5CommonFG.cpp
@@ -79,7 +79,6 @@ Group CommonFG::openGroup( const char* name ) const
}
else
{
- //throw File_GroupException();
throwException();
}
}
@@ -107,7 +106,6 @@ DataSet CommonFG::createDataSet( const char* name, const DataType& data_type, co
}
else
{
- //throw File_GroupException();
throwException();
}
}
@@ -131,7 +129,6 @@ DataSet CommonFG::openDataSet( const char* name ) const
}
else
{
- //throw File_GroupException();
throwException();
}
}
@@ -147,7 +144,6 @@ void CommonFG::link( H5G_link_t link_type, const char* curr_name, const char* ne
herr_t ret_value = H5Glink( getLocId(), link_type, curr_name, new_name );
if( ret_value < 0 )
{
- //throw File_GroupException();
throwException();
}
}
@@ -162,7 +158,6 @@ void CommonFG::unlink( const char* name ) const
herr_t ret_value = H5Gunlink( getLocId(), name );
if( ret_value < 0 )
{
- //throw File_GroupException();
throwException();
}
}
@@ -177,7 +172,6 @@ void CommonFG::move( const char* src, const char* dst ) const
herr_t ret_value = H5Gmove( getLocId(), src, dst );
if( ret_value < 0 )
{
- //throw File_GroupException();
throwException();
}
}
@@ -192,7 +186,6 @@ void CommonFG::getObjinfo( const char* name, hbool_t follow_link, H5G_stat_t& st
herr_t ret_value = H5Gget_objinfo( getLocId(), name, follow_link, &statbuf );
if( ret_value < 0 )
{
- //throw File_GroupException();
throwException();
}
}
@@ -209,7 +202,6 @@ string CommonFG::getLinkval( const char* name, size_t size ) const
herr_t ret_value = H5Gget_linkval( getLocId(), name, size, value_C );
if( ret_value < 0 )
{
- //throw File_GroupException();
throwException();
}
string value = string( value_C );
@@ -227,7 +219,6 @@ void CommonFG::setComment( const char* name, const char* comment ) const
herr_t ret_value = H5Gset_comment( getLocId(), name, comment );
if( ret_value < 0 )
{
- //throw File_GroupException();
throwException();
}
}
@@ -247,7 +238,6 @@ string CommonFG::getComment( const char* name, size_t bufsize ) const
// if H5Gget_comment returns SUCCEED, return the string comment
if( ret_value < 0 )
{
- //throw File_GroupException();
throwException();
}
string comment = string( comment_C );
@@ -272,7 +262,6 @@ void CommonFG::mount( const char* name, H5File& child, PropList& plist ) const
// Raise exception if H5Fmount returns negative value
if( ret_value < 0 )
{
- //throw File_GroupException();
throwException();
}
}
@@ -290,7 +279,6 @@ void CommonFG::unmount( const char* name ) const
// Raise exception if H5Funmount returns negative value
if( ret_value < 0 )
{
- //throw File_GroupException();
throwException();
}
}
@@ -309,7 +297,6 @@ hid_t CommonFG::p_openDataType( const char* name ) const
return( datatype_id );
else
{
- //throw GroupIException();
throwException();
}
}