Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5E.walk

Walk error stack

Syntax

H5E.walk(direction,func)

Description

H5E.walk(direction,func) walks the error stack for the current thread and calls the specified function for each error along the way. func is a function handle. direction specifies how the error stack is traversed and can be given by one of the following character vectors or the numeric equivalent.

'H5E_WALK_UPWARD'
'H5E_WALK_DOWNWARD'

The specified function must have the following signature:

status = func(n,error_struct)

where n is the indexed position of the error in the stack and error_struct is a structure with the following fields:

maj_numMajor error number
min_numMinor error number
func_nameFunction in which the error occurred
file_nameFile in which the error occurred
lineLine in file where error occurs
descOptional supplied description

This function corresponds to the H5Ewalk1 function in the HDF5 library C API.

Was this topic helpful?