summaryrefslogtreecommitdiffstats
path: root/c++/src/H5FcreatProp.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/H5FcreatProp.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/H5FcreatProp.cpp')
-rw-r--r--c++/src/H5FcreatProp.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/c++/src/H5FcreatProp.cpp b/c++/src/H5FcreatProp.cpp
index 9d5c1d6..51f4773 100644
--- a/c++/src/H5FcreatProp.cpp
+++ b/c++/src/H5FcreatProp.cpp
@@ -25,7 +25,7 @@ void FileCreatPropList::getVersion(
herr_t ret_value = H5Pget_version( id, &boot, &freelist, &stab, &shhdr );
if( ret_value < 0 )
{
- throw PropListIException();
+ throw PropListIException("FileCreatPropList constructor");
}
}
@@ -34,7 +34,7 @@ void FileCreatPropList::setUserblock( hsize_t size ) const
herr_t ret_value = H5Pset_userblock( id, size);
if( ret_value < 0 )
{
- throw PropListIException();
+ throw PropListIException("FileCreatPropList::setUserblock");
}
}
@@ -44,7 +44,7 @@ hsize_t FileCreatPropList::getUserblock() const
herr_t ret_value = H5Pget_userblock( id, &userblock_size );
if( ret_value < 0 )
{
- throw PropListIException();
+ throw PropListIException("FileCreatPropList::getUserblock");
}
return( userblock_size );
}
@@ -54,7 +54,7 @@ void FileCreatPropList::setSizes( size_t sizeof_addr, size_t sizeof_size ) const
herr_t ret_value = H5Pset_sizes( id, sizeof_addr, sizeof_size );
if( ret_value < 0 )
{
- throw PropListIException();
+ throw PropListIException("FileCreatPropList::setSizes");
}
}
@@ -63,7 +63,7 @@ void FileCreatPropList::getSizes( size_t& sizeof_addr, size_t& sizeof_size ) con
herr_t ret_value = H5Pget_sizes( id, &sizeof_addr, &sizeof_size );
if( ret_value < 0 )
{
- throw PropListIException();
+ throw PropListIException("FileCreatPropList::getSizes");
}
}
@@ -72,7 +72,7 @@ void FileCreatPropList::setSymk( int ik, int lk ) const
herr_t ret_value = H5Pset_sym_k( id, ik, lk );
if( ret_value < 0 )
{
- throw PropListIException();
+ throw PropListIException("FileCreatPropList::setSymk");
}
}
@@ -81,7 +81,7 @@ void FileCreatPropList::getSymk( int& ik, int& lk ) const
herr_t ret_value = H5Pget_sym_k( id, &ik, &lk );
if( ret_value < 0 )
{
- throw PropListIException();
+ throw PropListIException("FileCreatPropList::getSymk");
}
}
@@ -90,7 +90,7 @@ void FileCreatPropList::setIstorek( int ik ) const
herr_t ret_value = H5Pset_istore_k( id, ik );
if( ret_value < 0 )
{
- throw PropListIException();
+ throw PropListIException("FileCreatPropList::setIstorek");
}
}
int FileCreatPropList::getIstorek() const
@@ -99,7 +99,7 @@ int FileCreatPropList::getIstorek() const
herr_t ret_value = H5Pget_istore_k( id, &ik );
if( ret_value < 0 )
{
- throw PropListIException();
+ throw PropListIException("FileCreatPropList::getIstorek");
}
return( ik );
}