diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-03-06 07:08:33 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-03-06 07:08:33 (GMT) |
commit | f1932cb58219fd121ddb88cb9168a0caafad3a4c (patch) | |
tree | cadca7f218eb79b6e6d71ea3bef10fc1205a6eda /c++/src/H5Exception.cpp | |
parent | e99887cc669f3dccba8a4869a21b8cc1a8e3a3b6 (diff) | |
download | hdf5-f1932cb58219fd121ddb88cb9168a0caafad3a4c.zip hdf5-f1932cb58219fd121ddb88cb9168a0caafad3a4c.tar.gz hdf5-f1932cb58219fd121ddb88cb9168a0caafad3a4c.tar.bz2 |
[svn-r3550]
Purpose:
Bug fix
Description:
The Exception destructor accidently called H5Eprint, which caused
error messages to be printed where they are not supposed to because
the failures are expected.
Solution:
Removed that lousy call!
Platforms tested:
arabica (sparc-sun-solaris 2.7)
Diffstat (limited to 'c++/src/H5Exception.cpp')
-rw-r--r-- | c++/src/H5Exception.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/c++/src/H5Exception.cpp b/c++/src/H5Exception.cpp index c6e0efc..86606db 100644 --- a/c++/src/H5Exception.cpp +++ b/c++/src/H5Exception.cpp @@ -120,21 +120,21 @@ string Exception::getDetailMesg() const return( detailMessage ); } -// Prints the error stack in a default manner. -void Exception::printError( FILE* stream ) const +const char* Exception::getCDetailMesg() const { - herr_t ret_value = H5Eprint( NULL ); // print to stderr - if( ret_value < 0 ) - throw Exception( "Exception::printError" ); + return( detailMessage.c_str() ); } -Exception::~Exception() +// Prints the error stack in a default manner. +void Exception::printError( FILE* stream ) const { herr_t ret_value = H5Eprint( NULL ); // print to stderr if( ret_value < 0 ) throw Exception( "Exception::printError" ); } +Exception::~Exception() {} + FileIException::FileIException():Exception(){} FileIException::FileIException( string message ): Exception( message ){} FileIException::~FileIException() {} |