mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r5487] Purpose:
Bug fix Description: H5Ewalk_cb was being called from a C++ API, when it really is an internal routine to the H5E interface. Solution: Removed C++ API wrapper for it. Platforms tested: FreeBSD 4.5 (sleipnir)
This commit is contained in:
parent
be18b5da13
commit
685821526f
@ -115,16 +115,6 @@ void Exception::walkErrorStack( H5E_direction_t direction, H5E_walk_t func, void
|
|||||||
throw Exception( "Exception::walkErrorStack", "H5Ewalk failed" );
|
throw Exception( "Exception::walkErrorStack", "H5Ewalk failed" );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default error stack traversal callback function that prints error
|
|
||||||
// messages to the specified output stream.
|
|
||||||
void Exception::walkDefErrorStack( int n, H5E_error_t& err_desc, void* client_data )
|
|
||||||
{
|
|
||||||
// calls the C API routine H5Ewalk_cb to walk the error stack
|
|
||||||
herr_t ret_value = H5Ewalk_cb( n, &err_desc, client_data );
|
|
||||||
if( ret_value < 0 )
|
|
||||||
throw Exception( "Exception::walkDefErrorStack", "H5Ewalk_cb failed" );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returns the detailed message set at the time the exception is thrown
|
// Returns the detailed message set at the time the exception is thrown
|
||||||
string Exception::getDetailMsg() const
|
string Exception::getDetailMsg() const
|
||||||
{
|
{
|
||||||
|
@ -53,11 +53,6 @@ class __DLLCPP__ Exception {
|
|||||||
static void walkErrorStack( H5E_direction_t direction,
|
static void walkErrorStack( H5E_direction_t direction,
|
||||||
H5E_walk_t func, void* client_data);
|
H5E_walk_t func, void* client_data);
|
||||||
|
|
||||||
// Default error stack traversal callback function that prints
|
|
||||||
// error messages to the specified output stream.
|
|
||||||
static void walkDefErrorStack( int n, H5E_error_t& err_desc,
|
|
||||||
void* client_data);
|
|
||||||
|
|
||||||
// Prints the error stack in a default manner.
|
// Prints the error stack in a default manner.
|
||||||
virtual void printError( FILE* stream = NULL ) const;
|
virtual void printError( FILE* stream = NULL ) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user