Source
268
268
HGOTO_ERROR(H5E_ERROR, H5E_CANTSET, FAIL, "can't push error on stack")
269
269
270
270
done:
271
271
FUNC_LEAVE_API(ret_value)
272
272
} /* end H5Epush1() */
273
273
274
274
•
275
275
/*-------------------------------------------------------------------------
276
276
* Function: H5Eclear1
277
277
*
278
-
* Purpose: This function is for backward compatbility.
278
+
* Purpose: This function is for backward compatibility.
279
279
* Clears the error stack for the specified error stack.
280
280
*
281
281
* Return: Non-negative on success/Negative on failure
282
282
*
283
283
* Programmer: Raymond Lu
284
284
* Wednesday, July 16, 2003
285
285
*
286
286
*-------------------------------------------------------------------------
287
287
*/
288
288
herr_t
299
299
HGOTO_ERROR(H5E_ERROR, H5E_CANTSET, FAIL, "can't clear error stack")
300
300
301
301
done:
302
302
FUNC_LEAVE_API(ret_value)
303
303
} /* end H5Eclear1() */
304
304
305
305
•
306
306
/*-------------------------------------------------------------------------
307
307
* Function: H5Eprint1
308
308
*
309
-
* Purpose: This function is for backward compatbility.
309
+
* Purpose: This function is for backward compatibility.
310
310
* Prints the error stack in some default way. This is just a
311
311
* convenience function for H5Ewalk() with a function that
312
312
* prints error messages. Users are encouraged to write there
313
313
* own more specific error handlers.
314
314
*
315
315
* Return: Non-negative on success/Negative on failure
316
316
*
317
317
* Programmer: Raymond Lu
318
318
* Sep 16, 2003
319
319
*
337
337
HGOTO_ERROR(H5E_ERROR, H5E_CANTLIST, FAIL, "can't display error stack")
338
338
339
339
done:
340
340
FUNC_LEAVE_API(ret_value)
341
341
} /* end H5Eprint1() */
342
342
343
343
•
344
344
/*-------------------------------------------------------------------------
345
345
* Function: H5Ewalk1
346
346
*
347
-
* Purpose: This function is for backward compatbility.
347
+
* Purpose: This function is for backward compatibility.
348
348
* Walks the error stack for the current thread and calls some
349
349
* function for each error along the way.
350
350
*
351
351
* Return: Non-negative on success/Negative on failure
352
352
*
353
353
* Programmer: Raymond Lu
354
354
* Sep 16, 2003
355
355
*
356
356
*-------------------------------------------------------------------------
357
357
*/
376
376
HGOTO_ERROR(H5E_ERROR, H5E_CANTLIST, FAIL, "can't walk error stack")
377
377
378
378
done:
379
379
FUNC_LEAVE_API(ret_value)
380
380
} /* end H5Ewalk1() */
381
381
382
382
•
383
383
/*-------------------------------------------------------------------------
384
384
* Function: H5Eget_auto1
385
385
*
386
-
* Purpose: This function is for backward compatbility.
386
+
* Purpose: This function is for backward compatibility.
387
387
* Returns the current settings for the automatic error stack
388
388
* traversal function and its data for specific error stack.
389
389
* Either (or both) arguments may be null in which case the
390
390
* value is not returned.
391
391
*
392
392
* Return: Non-negative on success/Negative on failure
393
393
*
394
394
* Programmer: Raymond Lu
395
395
* Sep 16, 2003
396
396
*
427
427
*func = auto_op.func1;
428
428
429
429
done:
430
430
FUNC_LEAVE_API(ret_value)
431
431
} /* end H5Eget_auto1() */
432
432
433
433
•
434
434
/*-------------------------------------------------------------------------
435
435
* Function: H5Eset_auto1
436
436
*
437
-
* Purpose: This function is for backward compatbility.
437
+
* Purpose: This function is for backward compatibility.
438
438
* Turns on or off automatic printing of errors for certain
439
439
* error stack. When turned on (non-null FUNC pointer) any
440
440
* API function which returns an error indication will first
441
441
* call FUNC passing it CLIENT_DATA as an argument.
442
442
*
443
443
* The default values before this function is called are
444
444
* H5Eprint1() with client data being the standard error stream,
445
445
* stderr.
446
446
*
447
447
* Automatic stack traversal is always in the H5E_WALK_DOWNWARD