summaryrefslogtreecommitdiffstats
path: root/doc/html/RM_H5E.html
blob: c11739695e6d433992a2da0f81d573cb55831892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
<html>
<head><title>
HDF5/H5E API Specification
</title>

<!-- #BeginLibraryItem "/ed_libs/styles_RM.lbi" -->

<!--
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  * Copyright by the Board of Trustees of the University of Illinois.         *
  * All rights reserved.                                                      *
  *                                                                           *
  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
  * terms governing use, modification, and redistribution, is contained in    *
  * the files COPYING and Copyright.html.  COPYING can be found at the root   *
  * of the source code distribution tree; Copyright.html can be found at the  *
  * root level of an installed copy of the electronic HDF5 document set and   *
  * is linked from the top-level documents page.  It can also be found at     *
  * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html.  If you do not have     *
  * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 -->

<link href="ed_styles/RMelect.css" rel="stylesheet" type="text/css">
<!-- #EndLibraryItem --></head>

<body bgcolor="#FFFFFF">
<!-- HEADER RIGHT " " -->


<!-- #BeginLibraryItem "/ed_libs/NavBar_RM.lbi" --><hr>
<center>
<table border=0 width=98%>
<tr><td valign=top align=left>
<a href="index.html">HDF5 documents and links</a>&nbsp;<br>
<a href="H5.intro.html">Introduction to HDF5</a>&nbsp;<br>
<a href="http://hdf.ncsa.uiuc.edu/HDF5/doc/UG/index.html">HDF5 User Guide</a>&nbsp;<br>
<!--
<a href="Glossary.html">Glossary</a><br>
-->
</td>
<td valign=top align=right>
And in this document, the 
<a href="RM_H5Front.html">HDF5 Reference Manual</a>&nbsp;&nbsp;
<br>
<a href="http://hdf.ncsa.uiuc.edu/HDF5/hdf5_hl/doc/RM_hdf5im.html">H5IM</a>&nbsp;&nbsp;
<a href="http://hdf.ncsa.uiuc.edu/HDF5/hdf5_hl/doc/RM_hdf5lt.html">H5LT</a>&nbsp;&nbsp;
<a href="http://hdf.ncsa.uiuc.edu/HDF5/hdf5_hl/doc/RM_hdf5pt.html">H5PT</a>&nbsp;&nbsp;
<a href="http://hdf.ncsa.uiuc.edu/HDF5/hdf5_hl/doc/RM_hdf5tb.html">H5TB</a>&nbsp;&nbsp;
<br>
<a href="RM_H5.html">H5</a>&nbsp;&nbsp;
<a href="RM_H5A.html">H5A</a>&nbsp;&nbsp;
<a href="RM_H5D.html">H5D</a>&nbsp;&nbsp;
<a href="RM_H5E.html">H5E</a>&nbsp;&nbsp;
<a href="RM_H5F.html">H5F</a>&nbsp;&nbsp;
<a href="RM_H5G.html">H5G</a>&nbsp;&nbsp;
<a href="RM_H5I.html">H5I</a>&nbsp;&nbsp;
<a href="RM_H5P.html">H5P</a>&nbsp;&nbsp;
<br>
<a href="RM_H5R.html">H5R</a>&nbsp;&nbsp;
<a href="RM_H5S.html">H5S</a>&nbsp;&nbsp;
<a href="RM_H5T.html">H5T</a>&nbsp;&nbsp;
<a href="RM_H5Z.html">H5Z</a>&nbsp;&nbsp;
<a href="Tools.html">Tools</a>&nbsp;&nbsp;
<a href="PredefDTypes.html">Datatypes</a>&nbsp;&nbsp;
</td></tr>
</table>
</center>
<hr><!-- #EndLibraryItem --><center>
<h1>H5E: Error Interface</h1>
</center>

<h2>Error API Functions</h2>

These functions provide error handling capabilities in the HDF5 environment.

<p>
<strong>The C Interfaces:</strong>

<table border=0>
<tr><td valign=top>
<ul>
    <li><a href="#Error-Clear">H5Eclear</a>
    <li><a href="#Error-Print">H5Eprint</a>
    <li><a href="#Error-Push">H5Epush</a>
    <li><a href="#Error-SetAuto">H5Eset_auto</a>
    <li><a href="#Error-GetAuto">H5Eget_auto</a>
    <li><a href="#Error-Walk">H5Ewalk</a>
    <li><a href="#Error-WalkCB">H5Ewalk_cb</a>
</ul>
</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td valign=top>
<ul>
    <li><a href="#Error-GetMajor">H5Eget_major</a>
	<li><a href="#Error-AutoIsStack">H5Eauto_is_stack</a>
    <li><a href="#Error-RegisterClass">H5Eregister_class</a>
    <li><a href="#Error-CreateMsg">H5Ecreate_msg</a>
    <li><a href="#Error-GetClassName">H5Eget_class_name</a>
    <li><a href="#Error-GetMsg">H5Eget_msg</a>
    <li><a href="#Error-Pop">H5Epop</a>
</ul>
</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td valign=top>
<ul>
    <li><a href="#Error-GetNum">H5Eget_num</a>
    <li><a href="#Error-CloseMsg">H5Eclose_msg</a>
    <li><a href="#Error-UnregisterClass">H5Eunregister_class</a>
    <li><a href="#Error-GetCurrentStack">H5Eget_current_stack</a>
    <li><a href="#Error-SetCurrentStack">H5Eset_current_stack</a>
    <li><a href="#Error-CloseStack">H5Eclose_stack</a>	
</ul>
</td></tr>
</table>
<br>

<i>Alphabetical Listing</i>

<table border="0">
  <tr>
    <td valign="top">
	<ul>
	  <li><a href="#Error-AutoIsStack">H5Eauto_is_stack</a>
      <li><a href="#Error-Clear">H5Eclear</a>
      <li><a href="#Error-CloseMsg">H5Eclose_msg</a>
      <li><a href="#Error-CloseStack">H5Eclose_stack</a>
      <li><a href="#Error-CreateMsg">H5Ecreate_msg</a>
      <li><a href="#Error-GetAuto">H5Eget_auto</a>
      <li><a href="#Error-GetClassName">H5Eget_class_name</a>	  
	</ul>     
    </td>
    
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    
    <td valign="top">
	<ul>
      <li><a href="#Error-GetCurrentStack">H5Eget_current_stack</a>
      <li><a href="#Error-GetMajor">H5Eget_major</a>	
      <li><a href="#Error-GetMinor">H5Eget_minor</a>
      <li><a href="#Error-GetMsg">H5Eget_msg</a>
      <li><a href="#Error-GetNum">H5Eget_num</a>
      <li><a href="#Error-Pop">H5Epop</a>
      <li><a href="#Error-Print">H5Eprint</a>	  
	</ul>
    </td>
    
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    
    <td valign="top">
	<ul>
      <li><a href="#Error-Push">H5Epush</a>	
      <li><a href="#Error-RegisterClass">H5Eregister_class</a>
      <li><a href="#Error-SetAuto">H5Eset_auto</a>
      <li><a href="#Error-SetCurrentStack">H5Eset_current_stack</a>
      <li><a href="#Error-UnregisterClass">H5Eunregister_class</a>
      <li><a href="#Error-Walk">H5Ewalk</a>
      <li><a href="#Error-WalkCB">H5Ewalk_cb</a>
	</ul>
    </td>
  </tr>
</table>

<br>
<strong>The FORTRAN90 Interfaces:</strong>
<br>
In general, each FORTRAN90 subroutine performs exactly the same task 
as the corresponding C function.  
<br>

<table border=0>
<tr><td valign=top>
<ul>
    <li><a href="#Error-Clear">h5eclear_f</a>
    <li><a href="#Error-Print">h5eprint_f</a>
</ul>
</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td valign=top>
<ul>
    <li><a href="#Error-SetAuto">h5eset_auto_f</a>
<!--<li><a href="#Error-GetAuto">h5eget_auto_f</a>                    -->
<!--<li><a href="#Error-Walk">h5ewalk_f</a>                          -->
<!--<li><a href="#Error-WalkCB">h5ewalk_cb_f</a>                     -->
</ul>
</td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td valign=top>
<ul>
    <li><a href="#Error-GetMajor">h5eget_major_f</a>
    <li><a href="#Error-GetMinor">h5eget_minor_f</a>
</ul>
</td></tr>
</table>

<p>
The Error interface provides error handling in the form of a stack.  
The <code>FUNC_ENTER()</code> macro clears the error stack whenever 
an interface function is entered.  
When an error is detected, an entry is pushed onto the stack.  
As the functions unwind, additional entries are pushed onto the stack. 
The API function will return some indication that an error occurred and 
the application can print the error stack.
<p>
Certain API functions in the H5E package, such as <code>H5Eprint</code>,
do not clear the error stack.  Otherwise, any function which
does not have an underscore immediately after the package name
will clear the error stack.  For instance, <code>H5Fopen</code> 
clears the error stack while <code>H5F_open</code> does not.
<p>
An error stack has a fixed maximum size.  
If this size is exceeded then the stack will be truncated and only the
inner-most functions will have entries on the stack. 
This is expected to be a rare condition. 
<p>
Each thread has its own error stack, but since
multi-threading has not been added to the library yet, this
package maintains a single error stack. The error stack is
statically allocated to reduce the complexity of handling
errors within the H5E package.    

<!-- NEW PAGE -->
<!-- HEADER RIGHT " " -->
<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eauto_is_stack" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-AutoIsStack">H5Eauto_is_stack</a>
  <dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Eauto_is_stack</code>(<em>hid_t</em> 
	  <code>estack_id</code>, <em>unsigned</em> *<code>is_stack</code>)
  <dt><strong>Purpose:</strong>
    <dd>Determines type of error stack.
  <dt><strong>Description:</strong>
    <dd><code>H5Eauto_is_stack</code> determines whether the error auto 
	  reporting function for an error stack conforms to the 
          <code>H5E_auto_stack_t</code> typedef or the 
          <code>H5E_auto_t</code> typedef. 
          <p>
          The <code>is_stack</code> parameter is set to <code>1</code>1 
          if the error stack conforms to <code>H5E_auto_stack_t</code>
	  and <code>0</code> for if <code>H5E_auto_t</code>.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>hid_t</em> <code>estack_id</code></td>
            <td valign="top">The error stack identifier</td></tr>
        <tr>
            <td valign="top"><em>unsigned</em>*&nbsp;<code>is_stack</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">A flag indicating which error stack typedef
                the specified error stack conforms to. </td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns a non-negative value if successful;
        otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eclear" -->
<hr>
<dl>
<dt><strong>Name:</strong> <a name="Error-Clear">H5Eclear</a>
<dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Eclear</code>(<code>void</code>)
<dt><strong>Purpose:</strong>
    <dd>Clears the error stack for the current thread.
<dt><strong>Description:</strong>
    <dd><code>H5Eclear</code> clears the error stack for the current thread.
        <p>
        The stack is also cleared whenever an API function is called, 
	  with certain exceptions (for instance, <code>H5Eprint</code>).
        <p>
        <code>H5Eclear</code> can fail if there are problems initializing 
        the library.
<dt><strong>Parameters:</strong>
    <ul><table>
        <tr><td valign="top">None</td></tr>
    </table></ul>
<dt><strong>Returns:</strong>
    <dd>Returns a non-negative value if successful;
        otherwise returns a negative value.
<dt><strong>Fortran90 Interface:</strong> h5eclear_f
    <dd>
	<pre>
SUBROUTINE h5eclear_f(hdferr) 
  IMPLICIT NONE
  INTEGER, INTENT(OUT) :: hdferr  ! Error code

END SUBROUTINE h5eclear_f
	</pre>		
		
		<!--<dt><strong>Non-C API(s):</strong>
    	<dd>
        
        <img src="Graphics/Java.gif"> 
        <img src="Graphics/C++.gif">
        -->
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eclose_msg" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-CloseMsg">H5Eclose_msg</a>
  <dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Eclose_msg</code>(<em>hid_t</em> 
	  <code>mesg_id</code>)
  <dt><strong>Purpose:</strong>
    <dd>Closes an error message identifier.
  <dt><strong>Description:</strong>
    <dd><code>H5Eclose_msg</code> closes an error message identifier., 
          which can be either a major or minor message.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>hid_t</em>&nbsp;<code>mesg_id</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Error message identifier.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns a non-negative value on success; 
        otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eclose_stack" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-CloseStack">H5Eclose_stack</a>
  <dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Eclose_stack</code>(<em>hid_t</em> 
	  <code>error_stack</code>)
  <dt><strong>Purpose:</strong>
    <dd>Closes object handle for error stack.
  <dt><strong>Description:</strong>
    <dd><code>H5Eclose_stack</code> closes the object handle for an 
	  error stack and releases its resources. <code>H5E_DEFAULT</code> 
	  cannot be closed.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>hid_t</em>&nbsp;<code>error_stack</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Error stack identifier.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns a non-negative value on success; 
	otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Ecreate_msg" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-CreateMsg">H5Ecreate_msg</a>
  <dt><strong>Signature:</strong>
    <dd><em>hid_t</em> <code>H5Ecreate_msg</code>(<em>hid_t</em> 
	  <code>class</code>, <em>H5E_type_t</em> <code>msg_type</code>, 
	  <em>const char</em>* <code>mesg</code>)
  <dt><strong>Purpose:</strong>
    <dd>Add major error message to an error class.
  <dt><strong>Description:</strong>
    <dd><code>H5Ecreate_msg</code> adds an error message to an error class 
	  defined by client library or application program.  The error message 
	  can be either major or minor which is indicated 
	  by parameter <code>msg_type</code>.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>hid_t</em>&nbsp;<code>class</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Error class identifier.</td></tr>
        <tr>
            <td valign="top"><em>H5E_type_t</em>&nbsp;<code>msg_type</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: The type of the error message. 
                <br>
                Valid values are <code>H5E_MAJOR</code> and 
                <code>H5E_MINOR</code>.</td></tr>
        <tr>
            <td valign="top"><em>const char</em>*&nbsp;<code>mesg</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Major error message.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns a message identifier on success; 
	otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eget_auto" -->
<hr>
<dl>
<dt><strong>Name:</strong> <a name="Error-GetAuto">H5Eget_auto</a>
<dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Eget_auto</code>(<em>H5E_auto_t *</em> <code>func</code>,
        <em>void **</em><code>client_data</code>
    )
<dt><strong>Purpose:</strong>
    <dd>Returns the current settings for the automatic error stack
        traversal function and its data.  
<dt><strong>Description:</strong>
    <dd><code>H5Eget_auto</code> returns the current settings for the 
        automatic error stack traversal function, <code>func</code>, 
        and its data, <code>client_data</code>.  Either (or both) 
        arguments may be null in which case the value is not returned.
<dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>H5E_auto_t *</em> <code>func</code></td>
            <td valign="top">OUT: Current setting for the function to be called upon an 
                error condition.</td></tr>
        <tr>
            <td valign="top"><em>void&nbsp;**</em><code>client_data&nbsp;&nbsp;&nbsp;&nbsp;</code></td>
            <td valign="top">OUT: Current setting for the data passed to the error function.</td></tr>
    </table></ul>
<dt><strong>Returns:</strong>
    <dd>Returns a non-negative value if successful;
        otherwise returns a negative value.
<dt><strong>Fortran90 Interface:</strong>
    <dd>None.
	
<!--
	<pre>
SUBROUTINE
	</pre>
-->    
		
		<!--<dt><strong>Non-C API(s):</strong>
    	<dd>
        
        <img src="Graphics/Java.gif"> 
        <img src="Graphics/C++.gif">
        -->
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eget_class_name" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-GetClassName">H5Eget_class_name</a>
  <dt><strong>Signature:</strong>
    <dd><em>ssize_t</em> <code>H5Eget_class_name</code>(<em>hid_t</em> 
	  <code>class_id</code>, <em>char</em>* <code>name</code>, 
	  <em>size_t</em> <code>size</code>)
  <dt><strong>Purpose:</strong>
    <dd>Retrieves error class name.
  <dt><strong>Description:</strong>
    <dd><code>H5Eget_class_name</code> retrieves the name of the error class 
	  specified by the class identifier.  
          If non-NULL pointer is passed in for <code>name</code> and 
          <code>size</code> is greater than zero, the class 
	  name of <code>size</code> long is returned.  The length of the error 
	  class name is also returned.  
          If NULL is passed in as name, only the length of 
	  class name is returned.  If zero is returned, it means no name.  
	  User is responsible for allocated enough buffer for the name.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>hid_t</em>&nbsp;<code>class_id</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Error class identifier.</td></tr>
        <tr>
            <td valign="top"><em>char</em>*&nbsp;<code>name</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">OUT: The name of the class to be queried.</td></tr>
        <tr>
            <td valign="top"><em>size_t</em>&nbsp;<code>size</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: The length of class name to be returned 
                by this function.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns non-negative value as on success; 
	otherwise returns negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eget_current_stack" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-GetCurrentStack">H5Eget_current_stack</a>
  <dt><strong>Signature:</strong>
    <dd><em>hid_t</em> <code>H5Eget_current_stack</code>(<em>void</em>)
  <dt><strong>Purpose:</strong>
    <dd>Registers the current error stack.
  <dt><strong>Description:</strong>
    <dd><code>H5Eget_current_stack</code> registers the current error stack, 
	  returns an object identifier, and clears the current error stack. 
	  An empty error stack will also be assigned an identifier.
  <dt><strong>Parameters:</strong>
    <ul><table>
	  <tr><td>None.</td></tr>	
	</table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns the identifier of the current error stack on success; 
	otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eget_major" -->
<hr>
<dl>
<dt><strong>Name:</strong> <a name="Error-GetMajor">H5Eget_major</a>
<dt><strong>Signature:</strong>
    <dd><em>const char *</em> <code>H5Eget_major</code>(<em>H5E_major_t</em> <code>n</code>)
<dt><strong>Purpose:</strong>
    <dd>Returns a character string describing an error specified by a 
        major error number.
<dt><strong>Description:</strong>
    <dd>Given a major error number, <code>H5Eget_major</code> returns a 
        constant character string that describes the error.
<dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
	    <td valign="top"><em>H5E_major_t</em>&nbsp;<code>n&nbsp;&nbsp;&nbsp;&nbsp;</code></td>
            <td valign="top">IN: Major error number.</td></tr>
    </table></ul>
<dt><strong>Returns:</strong>
    <dd> Returns a character string describing the error if successful.
         Otherwise returns "Invalid major error number."
<dt><strong>Fortran90 Interface:</strong> h5eget_major_f
    <dd>
	<pre>
SUBROUTINE h5eget_major_f(error_no, name, hdferr)
  INTEGER, INTENT(IN) :: error_no         !Major error number
  CHARACTER(LEN=*), INTENT(OUT) :: name   ! File name
  INTEGER, INTENT(OUT) :: hdferr          ! Error code

END SUBROUTINE h5eget_major_f
	</pre>		
		
		<!--<dt><strong>Non-C API(s):</strong>
    	<dd>
        
        <img src="Graphics/Java.gif"> 
        <img src="Graphics/C++.gif">
        -->
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eget_minor" -->
<hr>
<dl>
<dt><strong>Name:</strong> <a name="Error-GetMinor">H5Eget_minor</a>
<dt><strong>Signature:</strong>
    <dd><em>const char *</em> <code>H5Eget_minor</code>(<em>H5E_minor_t</em> <code>n</code>)
<dt><strong>Purpose:</strong>
    <dd>Returns a character string describing an error specified by a 
        minor error number.
<dt><strong>Description:</strong>
    <dd>Given a minor error number, <code>H5Eget_minor</code> returns a 
        constant character string that describes the error.
<dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
	    <td valign="top"><em>H5E_minor_t</em>&nbsp;<code>n&nbsp;&nbsp;&nbsp;&nbsp;</code></td>
            <td valign="top">IN: Minor error number.</td></tr>
    </table></ul>
<dt><strong>Returns:</strong>
    <dd> Returns a character string describing the error if successful.
         Otherwise returns "Invalid minor error number."
<dt><strong>Fortran90 Interface:</strong> h5eget_minor_f
    <dd>
	<pre>
SUBROUTINE h5eget_minor_f(error_no, name, hdferr)
  INTEGER, INTENT(IN) :: error_no         !Major error number
  CHARACTER(LEN=*), INTENT(OUT) :: name   ! File name
  INTEGER, INTENT(OUT) :: hdferr          ! Error code

END SUBROUTINE h5eget_minor_f
	</pre>		
		
		<!--<dt><strong>Non-C API(s):</strong>
    	<dd>
        
        <img src="Graphics/Java.gif"> 
        <img src="Graphics/C++.gif">
        -->
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eget_msg" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-GetMsg">H5Eget_msg</a>
  <dt><strong>Signature:</strong>
    <dd><em>ssize_t</em> <code>H5Eget_msg</code>(<em>hid_t</em> 
	  <code>mesg_id</code>, <em>H5E_type_t</em>* <code>mesg_type</code>, 
	  <em>char</em>* <code>mesg</code>, <em>size_t</em> <code>size</code>)
  <dt><strong>Purpose:</strong>
    <dd>Retrieves an error message.
  <dt><strong>Description:</strong>
    <dd><code>H5Eget_msg</code> retrieves the error message including its 
	  length and type.  The error message is specified by <code>mesg_id</code>.  
	  User is responsible for passing in enough buffer for the message.  
	  If <code>mesg</code> is not NULL and <code>size</code> is greater than zero, 
	  the error message of <code>size</code> long is returned.  The length of the 
	  message is also returned.  If NULL is passed in as <code>mesg</code>, only the 
	  length and type of the message is returned.  If the return value is zero, 
	  it means no message.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>hid_t</em>&nbsp;<code>mesg_id</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Idenfier for error message to be queried.</td></tr>
        <tr>
            <td valign="top"><em>H5E_type_t</em>*&nbsp;<code>mesg_type</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">OUT: The type of the error message.  
               <br>
               Valid values are <code>H5E_MAJOR</code> and 
               <code>H5E_MINOR</code>.</td></tr>
        <tr>
            <td valign="top"><em>char</em>*&nbsp;<code>mesg</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">OUT: Error message buffer.</td></tr>
        <tr>
            <td valign="top"><em>size_t</em>&nbsp;<code>size</code>&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: The length of error message to be returned 
                by this function.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns the size of the error message in bytes on success; 
	otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eget_num" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-GetNum">H5Eget_num</a>
  <dt><strong>Signature:</strong>
    <dd><em>ssize_t</em> <code>H5Eget_num</code>(<em>hid_t</em> <code>error_stack</code>)
  <dt><strong>Purpose:</strong>
    <dd>Retrieves the number of error messages in an error stack.
  <dt><strong>Description:</strong>
    <dd><code>H5Eget_num</code> retrieves the number of error records 
          in the error stack specified by <code>error_stack</code>
	  (including major, minor messages and description). 
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>hid_t</em>&nbsp;<code>error_stack</code>
                 &nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Error stack identifier.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns a non-negative value on success; 
	otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Epop" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-Pop">H5Epop</a>
  <dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Epop</code>(<em>hid_t</em> 
	  <code>error_stack</code>, <em>size_t</em> <code>count</code>)
  <dt><strong>Purpose:</strong>
    <dd>Deletes specified number of error messages from the error stack.
  <dt><strong>Description:</strong>
    <dd><code>H5Epop</code> deletes the number of error records specified 
          in <code>count</code> from the top of the error stack 
	  specified by <code>error_stack</code>  
          (including major, minor messages and description).
          The number of error messages to be deleted is specified by count.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>hid_t</em>&nbsp;<code>error_stack</code>
              &nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Error stack identifier.</td></tr>
        <tr>
            <td valign="top"><em>size_t</em> <code>count</code></td>
            <td valign="top">IN: The number of error messages to be deleted 
              from the top of error stack.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns a non-negative value on success; 
	otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eprint" -->
<hr>
<dl>
<dt><strong>Name:</strong> <a name="Error-Print">H5Eprint</a>
<dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Eprint</code>(<em>FILE *</em> <code>stream</code>)
<dt><strong>Purpose:</strong>
    <dd>Prints the error stack in a default manner.  
<dt><strong>Description:</strong>
    <dd><code>H5Eprint</code> prints the error stack on the specified 
        stream, <code>stream</code>.  
        Even if the error stack is empty, a one-line message will be printed:
        <br>&nbsp;&nbsp;&nbsp;&nbsp;
	  <code>HDF5-DIAG: Error detected in thread 0.</code>
        <p>
        <code>H5Eprint</code> is a convenience function for 
        <code>H5Ewalk</code> with a function that prints error messages.  
        Users are encouraged to write their own more specific error handlers.
<dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
	    <td valign="top"><em>FILE&nbsp;*</em>&nbsp;<code>stream&nbsp;&nbsp;&nbsp;&nbsp;</code></td>
            <td valign="top">IN: File pointer, or stderr if NULL.</td></tr>
    </table></ul>
<dt><strong>Returns:</strong>
    <dd>Returns a non-negative value if successful;
        otherwise returns a negative value.
<dt><strong>Fortran90 Interface:</strong> h5eprint_f
    <dd>
	<pre>
SUBROUTINE h5eprint_f(hdferr, name)
  CHARACTER(LEN=*), OPTIONAL, INTENT(IN) :: name ! File name
  INTEGER, INTENT(OUT) :: hdferr                 ! Error code

END SUBROUTINE h5eprint_f
	</pre>		
		
		<!--<dt><strong>Non-C API(s):</strong>
    	<dd>
        
        <img src="Graphics/Java.gif"> 
        <img src="Graphics/C++.gif">
        -->
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Epush" -->
<hr>
<dl>
<dt><strong>Name:</strong> <a name="Error-Push">H5Epush</a>
<dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Epush</code>(
            <em>const char *</em><code>file</code>,
            <em>const char *</em><code>func</code>,
            <em>unsigned</em> <code>line</code>,
            <em>H5E_major_t</em> <code>maj_num</code>,
            <em>H5E_minor_t</em> <code>min_num</code>,
            <em>const char *</em><code>str</code>
            )
<dt><strong>Purpose:</strong>
    <dd>Pushes new error record onto error stack.
<dt><strong>Description:</strong>
    <dd><code>H5Epush</code> pushes a new error record onto the 
        error stack for the current thread.  
        <p>
        The error has major and minor numbers <code>maj_num</code> and 
        <code>min_num</code>, 
        the function <code>func</code> where the error was detected,
        the name of the file <code>file</code> where the error was detected, 
        the line <code>line</code> within that file, 
        and an error description string <code>str</code>.  
        <p>
        The function name, file name, and error description strings 
        must be statically allocated.   
<dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
	    <td valign="top"><em>const char *</em><code>file</code>,</td>
            <td valign="top">IN: Name of the file in which the error was detected.</td></tr>
        <tr>
	    <td valign="top"><em>const char *</em><code>func</code>,</td>
            <td valign="top">IN: Name of the function in which the error was detected.</td></tr>
        <tr>
	    <td valign="top"><em>unsigned</em> <code>line</code>,</td>
            <td valign="top">IN: Line within the file at which the error was detected.</td></tr>
        <tr>
	    <td valign="top"><em>H5E_major_t</em>&nbsp;<code>maj_num,&nbsp;&nbsp;&nbsp;&nbsp;</code></td>
            <td valign="top">IN: Major error number.</td></tr>
        <tr>
	    <td valign="top"><em>H5E_minor_t</em> <code>min_num</code>,</td>
            <td valign="top">IN: Minor error number.</td></tr>
        <tr>
	    <td valign="top"><em>const char *</em><code>str</code></td>
            <td valign="top">IN: Error description string.</td></tr>
    </table></ul>
<dt><strong>Returns:</strong>
    <dd>Returns a non-negative value if successful;
        otherwise returns a negative value.
<dt><strong>Fortran90 Interface:</strong>
    <dd>None.
	
<!--
	<pre>
SUBROUTINE
	</pre>
-->		
		
		<!--<dt><strong>Non-C API(s):</strong>
    	<dd>
        
        <img src="Graphics/Java.gif"> 
        <img src="Graphics/C++.gif">
        -->
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eregister_class" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-RegisterClass">H5Eregister_class</a>
  <dt><strong>Signature:</strong>
    <dd><em>hid_t</em> <code>H5Eregister_class</code>(<em>const char</em>* 
	  <code>cls_name</code>, <em>const char</em>* <code>lib_name</code>, 
	  <em>const char</em>* <code>version</code>)
  <dt><strong>Purpose:</strong>
    <dd>Registers a client library or application program to HDF5 error API.
  <dt><strong>Description:</strong>
    <dd><code>H5Eregister_class</code> registers a client library or 
	  application program to HDF5 error API so that the client library 
	  or application program can report error together with HDF5 library. 
	  It receives an identifier for this error class for further error 
          operations.  The library name and version number will 
	  be printed out in the error message as preamble.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>const&nbsp;char</em>*&nbsp;<code>cls_name</code>,&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Name of the error class.</td></tr>
        <tr>
            <td valign="top"><em>const char</em>* <code>lib_name</code>,</td>
            <td valign="top">IN: Name of the client library or application 
               to which the error class belongs.</td></tr>
        <tr>
            <td valign="top"><em>const char</em>* <code>version</code>,</td>
            <td valign="top">IN: Version of the client library or application
               to which the error class belongs.  
               A NULL can be passed in.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns a class identifier on success; 
	otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eset_auto" -->
<hr>
<dl>
<dt><strong>Name:</strong> <a name="Error-SetAuto">H5Eset_auto</a>
<dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Eset_auto</code>(<em>H5E_auto_t</em> <code>func</code>,
        <em>void *</em><code>client_data</code>
    )
<dt><strong>Purpose:</strong>
    <dd>Turns automatic error printing on or off.
<dt><strong>Description:</strong>
    <dd><code>H5Eset_auto</code> turns on or off automatic printing of 
        errors.  When turned on (non-null <code>func</code> pointer), 
        any API function which returns an error indication will 
        first call <code>func</code>, passing it <code>client_data</code>
        as an argument.
        <p>
        When the library is first initialized the auto printing function 
	  is set to <code>H5Eprint</code> (cast appropriately) and
	  <code>client_data</code> is the standard error stream pointer,
	  <code>stderr</code>.
        <p>
        Automatic stack traversal is always in the 
        <code>H5E_WALK_DOWNWARD</code> direction. 
<dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
	    <td valign="top"><em>H5E_auto_t</em> <code>func</code></td>
            <td valign="top">IN: Function to be called upon an error condition.</td></tr>
        <tr>
	    <td valign="top"><em>void&nbsp;*</em><code>client_data&nbsp;&nbsp;&nbsp;&nbsp;</code></td>
            <td valign="top">IN: Data passed to the error function.</td></tr>
    </table></ul>
<dt><strong>Returns:</strong>
    <dd>Returns a non-negative value if successful;
        otherwise returns a negative value.
<dt><strong>Fortran90 Interface:</strong> h5eset_auto_f
    <dd>
	<pre>
SUBROUTINE h5eset_auto_f(printflag, hdferr)
  INTEGER, INTENT(IN) :: printflag  !flag to turn automatic error
                                    !printing on or off
                                    !possible values are:
                                    !printon (1)
                                    !printoff(0)
  INTEGER, INTENT(OUT) :: hdferr    ! Error code

END SUBROUTINE h5eset_auto_f
	</pre>		
		
		<!--<dt><strong>Non-C API(s):</strong>
    	<dd>
        
        <img src="Graphics/Java.gif"> 
        <img src="Graphics/C++.gif">
        -->
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eset_current_stack" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-SetCurrentStack">H5Eset_current_stack</a>
  <dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Eset_current_stack</code>(<em>hid_t</em> 
	  <code>error_stack</code>)
  <dt><strong>Purpose:</strong>
    <dd>Replaces the current error stack.
  <dt><strong>Description:</strong>
    <dd><code>H5Eset_current_stack</code> replaces the content of 
          the current error stack with a copy of the content of error stack 
          specified by <code>error_stack</code>.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
            <td valign="top"><em>hid_t</em>&nbsp;<code>error_stack</code>,&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Error stack identifier.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns a non-negative value on success; 
	otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Eunregister_class" -->
<hr>
<dl>
  <dt><strong>Name:</strong> <a name="Error-UnregisterClass">H5Eunregister_class</a>
  <dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Eunregister_class</code>(<em>hid_t</em> 
	  <code>class_id</code>)
  <dt><strong>Purpose:</strong>
    <dd>Removes an error class. 
  <dt><strong>Description:</strong>
    <dd><code>H5Eunregister_class</code> removes the error class specified
          by <code>class_id</code>.
	  All the major and minor errors in this class will also be closed.
  <dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
	    <td valign="top"><em>hid_t</em>&nbsp;<code>class_id</code>,&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td valign="top">IN: Error class identifier.</td></tr>
    </table></ul>
  <dt><strong>Returns:</strong>
    <dd>Returns a non-negative value on success; 
	otherwise returns a negative value.
  <dt><strong>Fortran90 Interface:</strong>
    <dd>None.
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Ewalk" -->
<hr>
<dl>
<dt><strong>Name:</strong> <a name="Error-Walk">H5Ewalk</a>
<dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Ewalk</code>(<em>H5E_direction_t</em> <code>direction</code>,
        <em>H5E_walk_t</em> <code>func</code>,
        <em>void *</em> <code>client_data</code>
    )
<dt><strong>Purpose:</strong>
    <dd>Walks the error stack for the current thread, calling a specified
        function.
<dt><strong>Description:</strong>
    <dd><code>H5Ewalk</code> walks the error stack for the current thread 
        and calls the specified function for each error along the way.
        <p>
        <code>direction</code> determines whether the stack is walked 
        from the inside out or the outside in.  
        A value of <code>H5E_WALK_UPWARD</code> means begin with the
        most specific error and end at the API; 
        a value of <code>H5E_WALK_DOWNWARD</code> means to start at the 
        API and end at the inner-most function where the error was first 
        detected.
        <p>
        <code>func</code> will be called for each error in the error stack. 
        Its arguments will include an index number (beginning at zero 
        regardless of stack traversal direction), an error stack entry, 
        and the <code>client_data</code> pointer passed to 
        <code>H5E_print</code>.
        The <code>H5E_walk_t</code> prototype is as follows:
        <dir>
        <p>
        <code>typedef</code> <em>herr_t</em> <code>(*H5E_walk_t)(</code><em>int</em> <code>n,</code> 
            <em>H5E_error_t *</em><code>err_desc,</code> 
            <em>void *</em><code>client_data)</code>
        <p>
        where the parameters have the following meanings:
            <dl>
            <dt><em>int</em> <code>n</code>
                <dd>Indexed position of the error in the stack.
            <dt><em>H5E_error_t *</em><code>err_desc</code>
                <dd>Pointer to a data structure describing the error.
                    <em>(This structure is currently described only in the
                        source code file </em><code>hdf5/src/H5Epublic.h</code><em>.  
                        That file also contains the definitive list of major 
                        and minor error codes.  That information will 
                        eventually be presented as an appendix to this 
                        <cite>Reference Manual</cite>.)</em>
            <dt><em>void *</em><code>client_data</code>
                <dd>Pointer to client data in the format expected by 
                    the user-defined function.
            </dl>
        </dir>
        <p>
        <code>H5Ewalk</code> can fail if there are problems initializing 
        the library.
<dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
	    <td valign="top"><em>H5E_direction_t</em>&nbsp;<code>direction&nbsp;&nbsp;&nbsp;&nbsp;</code></td>
            <td valign="top">IN: Direction in which the error stack is to be walked.</td></tr>
        <tr>
	    <td valign="top"><em>H5E_walk_t</em> <code>func</code></td>
            <td valign="top">IN: Function to be called for each error encountered.</td></tr>
        <tr>
	    <td valign="top"><em>void *</em> <code>client_data</code></td>
            <td valign="top">IN: Data to be passed with <code>func</code>.</td></tr>
    </table></ul>
<dt><strong>Returns:</strong>
    <dd>Returns a non-negative value if successful;
        otherwise returns a negative value.
<dt><strong>Fortran90 Interface:</strong>
    <dd>None.
	
<!--
	<pre>
SUBROUTINE
	</pre>
-->		
		
		<!--<dt><strong>Non-C API(s):</strong>
    	<dd>
        
        <img src="Graphics/Java.gif"> 
        <img src="Graphics/C++.gif">
        -->
</dl>

<!-- NEW PAGE -->
<!-- HEADER RIGHT "H5Ewalk_cb" -->
<hr>
<dl>
<dt><strong>Name:</strong> <a name="Error-WalkCB">H5Ewalk_cb</a>
<dt><strong>Signature:</strong>
    <dd><em>herr_t</em> <code>H5Ewalk_cb</code>(<em>int</em> <code>n</code>,
        <em>H5E_error_t *</em><code>err_desc</code>,
        <em>void</em> <code>*client_data</code>
    )
<dt><strong>Purpose:</strong>
    <dd>Default error stack traversal callback function
        that prints error messages to the specified output stream.
<dt><strong>Description:</strong>
    <dd><code>H5Ewalk_cb</code> is a default error stack traversal callback
        function that prints error messages to the specified output stream.
        It is not meant to be called directly but rather as an
        argument to the <code>H5Ewalk</code> function.  
        This function is called also by <code>H5Eprint</code>.  
        Application writers are encouraged to use this function as a 
        model for their own error stack walking functions.
        <p>
        <code>n</code> is a counter for how many times this function 
        has been called for this particular traversal of the stack.  
        It always begins at zero for the first error on the stack 
        (either the top or bottom error, or even both, depending on 
        the traversal direction and the size of the stack).
        <p>
        <code>err_desc</code> is an error description.  It contains all the
        information about a particular error. 
        <p>
        <code>client_data</code> is the same pointer that was passed as the
        <code>client_data</code> argument of <code>H5Ewalk</code>.  
        It is expected to be a file pointer (or stderr if NULL). 
<dt><strong>Parameters:</strong>
    <ul><table>
        <tr>
	    <td valign="top"><em>int</em> <code>n</code></td>
            <td valign="top">IN/OUT: Number of times this function has been called 
                for this traversal of the stack.</td></tr>
        <tr>
	    <td valign="top"><em>H5E_error_t&nbsp;*</em><code>err_desc&nbsp;&nbsp;&nbsp;&nbsp;</code></td>
            <td valign="top">OUT: Error description.</td></tr>
        <tr>
	    <td valign="top"><em>void</em> <code>*client_data</code></td>
            <td valign="top">IN: A file pointer, or stderr if NULL.</td></tr>
    </table></ul>
<dt><strong>Returns:</strong>
    <dd>Returns a non-negative value if successful;
        otherwise returns a negative value.
<dt><strong>Fortran90 Interface:</strong>
    <dd>None.
	
<!--
	<pre>
SUBROUTINE
	</pre>
-->		
		
		<!--<dt><strong>Non-C API(s):</strong>
    	<dd>
        
        <img src="Graphics/Java.gif"> 
        <img src="Graphics/C++.gif">
        -->
</dl>

<!-- #BeginLibraryItem "/ed_libs/NavBar_RM.lbi" --><hr>
<center>
<table border=0 width=98%>
<tr><td valign=top align=left>
<a href="index.html">HDF5 documents and links</a>&nbsp;<br>
<a href="H5.intro.html">Introduction to HDF5</a>&nbsp;<br>
<a href="http://hdf.ncsa.uiuc.edu/HDF5/doc/UG/index.html">HDF5 User Guide</a>&nbsp;<br>
<!--
<a href="Glossary.html">Glossary</a><br>
-->
</td>
<td valign=top align=right>
And in this document, the 
<a href="RM_H5Front.html">HDF5 Reference Manual</a>&nbsp;&nbsp;
<br>
<a href="http://hdf.ncsa.uiuc.edu/HDF5/hdf5_hl/doc/RM_hdf5im.html">H5IM</a>&nbsp;&nbsp;
<a href="http://hdf.ncsa.uiuc.edu/HDF5/hdf5_hl/doc/RM_hdf5lt.html">H5LT</a>&nbsp;&nbsp;
<a href="http://hdf.ncsa.uiuc.edu/HDF5/hdf5_hl/doc/RM_hdf5pt.html">H5PT</a>&nbsp;&nbsp;
<a href="http://hdf.ncsa.uiuc.edu/HDF5/hdf5_hl/doc/RM_hdf5tb.html">H5TB</a>&nbsp;&nbsp;
<br>
<a href="RM_H5.html">H5</a>&nbsp;&nbsp;
<a href="RM_H5A.html">H5A</a>&nbsp;&nbsp;
<a href="RM_H5D.html">H5D</a>&nbsp;&nbsp;
<a href="RM_H5E.html">H5E</a>&nbsp;&nbsp;
<a href="RM_H5F.html">H5F</a>&nbsp;&nbsp;
<a href="RM_H5G.html">H5G</a>&nbsp;&nbsp;
<a href="RM_H5I.html">H5I</a>&nbsp;&nbsp;
<a href="RM_H5P.html">H5P</a>&nbsp;&nbsp;
<br>
<a href="RM_H5R.html">H5R</a>&nbsp;&nbsp;
<a href="RM_H5S.html">H5S</a>&nbsp;&nbsp;
<a href="RM_H5T.html">H5T</a>&nbsp;&nbsp;
<a href="RM_H5Z.html">H5Z</a>&nbsp;&nbsp;
<a href="Tools.html">Tools</a>&nbsp;&nbsp;
<a href="PredefDTypes.html">Datatypes</a>&nbsp;&nbsp;
</td></tr>
</table>
</center>
<hr><!-- #EndLibraryItem --><!-- #BeginLibraryItem "/ed_libs/Footer.lbi" --><address>
<a href="mailto:hdfhelp@ncsa.uiuc.edu">HDF Help Desk</a> 
<br>
Describes HDF5 Release 1.7, the unreleased development branch; working toward HDF5 Release 1.8.0
</address><!-- #EndLibraryItem --><SCRIPT LANGUAGE="JAVASCRIPT">
<!--
document.writeln("Last modified: 18 May 2005");
-->
</SCRIPT>
 
</body>
</html>