Grid Community Toolkit  6.2.1705709074 (tag: v6.2.20240202)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
globus_io_error_hierarchy.h
1 /*
2  * Copyright 1999-2014 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef GLOBUS_IO_ERROR_HIERARCHY_H
19 #define GLOBUS_IO_ERROR_HIERARCHY_H
20 
21 
22 #include "globus_common.h"
23 
24 #include "globus_object.h"
25 #include "globus_error.h"
26 #include "globus_io.h"
27 
28 #define GLOBUS_IO_ERROR_TYPE_BASE_DEFINITION GLOBUS_ERROR_TYPE_BASE_DEFINITION
29 #define globus_io_error_initialize_base globus_error_initialize_base
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /* the following code all generated by running the script
36  * ./globus_io_error_hierarchy.h.sh declarations < globus_io_error_hierarchy.idl
37  */
38 
39 extern const globus_object_type_t
40  GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED_DEFINITION;
41 
42 #define GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED \
43  (&GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED_DEFINITION)
44 
45 /* allocate and initialize an error of type
46  * GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
47 extern globus_object_t *
48 globus_io_error_construct_security_failed (
50  globus_object_t * cause,
51  globus_io_handle_t * handle,
52  int maj_stat,
53  int min_stat,
54  int token_stat);
55 
56 /* initialize and return an error of type
57  * GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
58 extern globus_object_t *
59 globus_io_error_initialize_security_failed (
60  globus_object_t * error,
62  globus_object_t * cause,
63  globus_io_handle_t * handle,
64  int maj_stat,
65  int min_stat,
66  int token_stat);
67 
68 /* return the handle instance data of an error
69  * derived from GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
70 extern globus_io_handle_t *
71 globus_io_error_security_failed_get_handle (globus_object_t * error)
72 ;
73 
74 /* set the handle instance data of an error
75  * derived from GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
76 extern void
77 globus_io_error_security_failed_set_handle (
78  globus_object_t * error,
79  globus_io_handle_t * value)
80 ;
81 
82 /* return the maj_stat instance data of an error
83  * derived from GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
84 extern int
85 globus_io_error_security_failed_get_maj_stat (globus_object_t * error)
86 ;
87 
88 /* set the maj_stat instance data of an error
89  * derived from GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
90 extern void
91 globus_io_error_security_failed_set_maj_stat (
92  globus_object_t * error,
93  int value)
94 ;
95 
96 /* return the min_stat instance data of an error
97  * derived from GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
98 extern int
99 globus_io_error_security_failed_get_min_stat (globus_object_t * error)
100 ;
101 
102 /* set the min_stat instance data of an error
103  * derived from GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
104 extern void
105 globus_io_error_security_failed_set_min_stat (
106  globus_object_t * error,
107  int value)
108 ;
109 
110 /* return the token_stat instance data of an error
111  * derived from GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
112 extern int
113 globus_io_error_security_failed_get_token_stat (globus_object_t * error)
114 ;
115 
116 /* set the token_stat instance data of an error
117  * derived from GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED */
118 extern void
119 globus_io_error_security_failed_set_token_stat (
120  globus_object_t * error,
121  int value)
122 ;
123 
124 
125 extern const globus_object_type_t
126  GLOBUS_IO_ERROR_TYPE_AUTHENTICATION_FAILED_DEFINITION;
127 
128 #define GLOBUS_IO_ERROR_TYPE_AUTHENTICATION_FAILED \
129  (&GLOBUS_IO_ERROR_TYPE_AUTHENTICATION_FAILED_DEFINITION)
130 
131 /* allocate and initialize an error of type
132  * GLOBUS_IO_ERROR_TYPE_AUTHENTICATION_FAILED */
133 extern globus_object_t *
134 globus_io_error_construct_authentication_failed (
136  globus_object_t * cause,
137  globus_io_handle_t * handle,
138  int maj_stat,
139  int min_stat,
140  int token_stat);
141 
142 /* initialize and return an error of type
143  * GLOBUS_IO_ERROR_TYPE_AUTHENTICATION_FAILED */
144 extern globus_object_t *
145 globus_io_error_initialize_authentication_failed (
146  globus_object_t * error,
148  globus_object_t * cause,
149  globus_io_handle_t * handle,
150  int maj_stat,
151  int min_stat,
152  int token_stat);
153 
154 
155 extern const globus_object_type_t
156  GLOBUS_IO_ERROR_TYPE_AUTHORIZATION_FAILED_DEFINITION;
157 
158 #define GLOBUS_IO_ERROR_TYPE_AUTHORIZATION_FAILED \
159  (&GLOBUS_IO_ERROR_TYPE_AUTHORIZATION_FAILED_DEFINITION)
160 
161 /* allocate and initialize an error of type
162  * GLOBUS_IO_ERROR_TYPE_AUTHORIZATION_FAILED */
163 extern globus_object_t *
164 globus_io_error_construct_authorization_failed (
166  globus_object_t * cause,
167  globus_io_handle_t * handle,
168  int maj_stat,
169  int min_stat,
170  int token_stat);
171 
172 /* initialize and return an error of type
173  * GLOBUS_IO_ERROR_TYPE_AUTHORIZATION_FAILED */
174 extern globus_object_t *
175 globus_io_error_initialize_authorization_failed (
176  globus_object_t * error,
178  globus_object_t * cause,
179  globus_io_handle_t * handle,
180  int maj_stat,
181  int min_stat,
182  int token_stat);
183 
184 
185 extern const globus_object_type_t
186  GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY_DEFINITION;
187 
188 #define GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY \
189  (&GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY_DEFINITION)
190 
191 /* allocate and initialize an error of type
192  * GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY */
193 extern globus_object_t *
194 globus_io_error_construct_unauthorized_identity (
196  globus_object_t * cause,
197  globus_io_handle_t * handle,
198  int maj_stat,
199  int min_stat,
200  int token_stat,
201  char * identity);
202 
203 /* initialize and return an error of type
204  * GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY */
205 extern globus_object_t *
206 globus_io_error_initialize_unauthorized_identity (
207  globus_object_t * error,
209  globus_object_t * cause,
210  globus_io_handle_t * handle,
211  int maj_stat,
212  int min_stat,
213  int token_stat,
214  char * identity);
215 
216 /* return the identity instance data of an error
217  * derived from GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY */
218 extern char *
219 globus_io_error_unauthorized_identity_get_identity (globus_object_t * error)
220 ;
221 
222 /* set the identity instance data of an error
223  * derived from GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY */
224 extern void
225 globus_io_error_unauthorized_identity_set_identity (
226  globus_object_t * error,
227  char * value)
228 ;
229 
230 
231 extern const globus_object_type_t
232  GLOBUS_IO_ERROR_TYPE_BAD_PROTECTION_DEFINITION;
233 
234 #define GLOBUS_IO_ERROR_TYPE_BAD_PROTECTION \
235  (&GLOBUS_IO_ERROR_TYPE_BAD_PROTECTION_DEFINITION)
236 
237 /* allocate and initialize an error of type
238  * GLOBUS_IO_ERROR_TYPE_BAD_PROTECTION */
239 extern globus_object_t *
240 globus_io_error_construct_bad_protection (
242  globus_object_t * cause,
243  globus_io_handle_t * handle,
244  int maj_stat,
245  int min_stat,
246  int token_stat);
247 
248 /* initialize and return an error of type
249  * GLOBUS_IO_ERROR_TYPE_BAD_PROTECTION */
250 extern globus_object_t *
251 globus_io_error_initialize_bad_protection (
252  globus_object_t * error,
254  globus_object_t * cause,
255  globus_io_handle_t * handle,
256  int maj_stat,
257  int min_stat,
258  int token_stat);
259 
260 
261 extern const globus_object_type_t
262  GLOBUS_IO_ERROR_TYPE_NO_SEC_CONTEXT_DEFINITION;
263 
264 #define GLOBUS_IO_ERROR_TYPE_NO_SEC_CONTEXT \
265  (&GLOBUS_IO_ERROR_TYPE_NO_SEC_CONTEXT_DEFINITION)
266 
267 /* allocate and initialize an error of type
268  * GLOBUS_IO_ERROR_TYPE_NO_SEC_CONTEXT */
269 extern globus_object_t *
270 globus_io_error_construct_no_sec_context (
272  globus_object_t * cause,
273  globus_io_handle_t * handle,
274  int maj_stat,
275  int min_stat,
276  int token_stat);
277 
278 /* initialize and return an error of type
279  * GLOBUS_IO_ERROR_TYPE_NO_SEC_CONTEXT */
280 extern globus_object_t *
281 globus_io_error_initialize_no_sec_context (
282  globus_object_t * error,
284  globus_object_t * cause,
285  globus_io_handle_t * handle,
286  int maj_stat,
287  int min_stat,
288  int token_stat);
289 
290 
291 extern const globus_object_type_t
292  GLOBUS_IO_ERROR_TYPE_CONTEXT_EXPIRED_DEFINITION;
293 
294 #define GLOBUS_IO_ERROR_TYPE_CONTEXT_EXPIRED \
295  (&GLOBUS_IO_ERROR_TYPE_CONTEXT_EXPIRED_DEFINITION)
296 
297 /* allocate and initialize an error of type
298  * GLOBUS_IO_ERROR_TYPE_CONTEXT_EXPIRED */
299 extern globus_object_t *
300 globus_io_error_construct_context_expired (
302  globus_object_t * cause,
303  globus_io_handle_t * handle,
304  int maj_stat,
305  int min_stat,
306  int token_stat);
307 
308 /* initialize and return an error of type
309  * GLOBUS_IO_ERROR_TYPE_CONTEXT_EXPIRED */
310 extern globus_object_t *
311 globus_io_error_initialize_context_expired (
312  globus_object_t * error,
314  globus_object_t * cause,
315  globus_io_handle_t * handle,
316  int maj_stat,
317  int min_stat,
318  int token_stat);
319 
320 
321 extern const globus_object_type_t
322  GLOBUS_IO_ERROR_TYPE_CREDENTIALS_EXPIRED_DEFINITION;
323 
324 #define GLOBUS_IO_ERROR_TYPE_CREDENTIALS_EXPIRED \
325  (&GLOBUS_IO_ERROR_TYPE_CREDENTIALS_EXPIRED_DEFINITION)
326 
327 /* allocate and initialize an error of type
328  * GLOBUS_IO_ERROR_TYPE_CREDENTIALS_EXPIRED */
329 extern globus_object_t *
330 globus_io_error_construct_credentials_expired (
332  globus_object_t * cause,
333  globus_io_handle_t * handle,
334  int maj_stat,
335  int min_stat,
336  int token_stat);
337 
338 /* initialize and return an error of type
339  * GLOBUS_IO_ERROR_TYPE_CREDENTIALS_EXPIRED */
340 extern globus_object_t *
341 globus_io_error_initialize_credentials_expired (
342  globus_object_t * error,
344  globus_object_t * cause,
345  globus_io_handle_t * handle,
346  int maj_stat,
347  int min_stat,
348  int token_stat);
349 
350 
351 extern const globus_object_type_t
352  GLOBUS_IO_ERROR_TYPE_NO_CREDENTIALS_DEFINITION;
353 
354 #define GLOBUS_IO_ERROR_TYPE_NO_CREDENTIALS \
355  (&GLOBUS_IO_ERROR_TYPE_NO_CREDENTIALS_DEFINITION)
356 
357 /* allocate and initialize an error of type
358  * GLOBUS_IO_ERROR_TYPE_NO_CREDENTIALS */
359 extern globus_object_t *
360 globus_io_error_construct_no_credentials (
362  globus_object_t * cause,
363  globus_io_handle_t * handle,
364  int maj_stat,
365  int min_stat,
366  int token_stat);
367 
368 /* initialize and return an error of type
369  * GLOBUS_IO_ERROR_TYPE_NO_CREDENTIALS */
370 extern globus_object_t *
371 globus_io_error_initialize_no_credentials (
372  globus_object_t * error,
374  globus_object_t * cause,
375  globus_io_handle_t * handle,
376  int maj_stat,
377  int min_stat,
378  int token_stat);
379 
380 
381 extern const globus_object_type_t
382  GLOBUS_IO_ERROR_TYPE_INVALID_CREDENTIALS_DEFINITION;
383 
384 #define GLOBUS_IO_ERROR_TYPE_INVALID_CREDENTIALS \
385  (&GLOBUS_IO_ERROR_TYPE_INVALID_CREDENTIALS_DEFINITION)
386 
387 /* allocate and initialize an error of type
388  * GLOBUS_IO_ERROR_TYPE_INVALID_CREDENTIALS */
389 extern globus_object_t *
390 globus_io_error_construct_invalid_credentials (
392  globus_object_t * cause,
393  globus_io_handle_t * handle,
394  int maj_stat,
395  int min_stat,
396  int token_stat);
397 
398 /* initialize and return an error of type
399  * GLOBUS_IO_ERROR_TYPE_INVALID_CREDENTIALS */
400 extern globus_object_t *
401 globus_io_error_initialize_invalid_credentials (
402  globus_object_t * error,
404  globus_object_t * cause,
405  globus_io_handle_t * handle,
406  int maj_stat,
407  int min_stat,
408  int token_stat);
409 
410 
411 extern const globus_object_type_t
412  GLOBUS_IO_ERROR_TYPE_IO_FAILED_DEFINITION;
413 
414 #define GLOBUS_IO_ERROR_TYPE_IO_FAILED \
415  (&GLOBUS_IO_ERROR_TYPE_IO_FAILED_DEFINITION)
416 
417 /* allocate and initialize an error of type
418  * GLOBUS_IO_ERROR_TYPE_IO_FAILED */
419 extern globus_object_t *
420 globus_io_error_construct_io_failed (
422  globus_object_t * cause,
423  globus_io_handle_t * handle);
424 
425 /* initialize and return an error of type
426  * GLOBUS_IO_ERROR_TYPE_IO_FAILED */
427 extern globus_object_t *
428 globus_io_error_initialize_io_failed (
429  globus_object_t * error,
431  globus_object_t * cause,
432  globus_io_handle_t * handle);
433 
434 /* return the handle instance data of an error
435  * derived from GLOBUS_IO_ERROR_TYPE_IO_FAILED */
436 extern globus_io_handle_t *
437 globus_io_error_io_failed_get_handle (globus_object_t * error)
438 ;
439 
440 /* set the handle instance data of an error
441  * derived from GLOBUS_IO_ERROR_TYPE_IO_FAILED */
442 extern void
443 globus_io_error_io_failed_set_handle (
444  globus_object_t * error,
445  globus_io_handle_t * value)
446 ;
447 
448 
449 extern const globus_object_type_t
450  GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE_DEFINITION;
451 
452 #define GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE \
453  (&GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE_DEFINITION)
454 
455 /* allocate and initialize an error of type
456  * GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE */
457 extern globus_object_t *
458 globus_io_error_construct_system_failure (
460  globus_object_t * cause,
461  globus_io_handle_t * handle,
462  int save_errno);
463 
464 /* initialize and return an error of type
465  * GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE */
466 extern globus_object_t *
467 globus_io_error_initialize_system_failure (
468  globus_object_t * error,
470  globus_object_t * cause,
471  globus_io_handle_t * handle,
472  int save_errno);
473 
474 /* return the save_errno instance data of an error
475  * derived from GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE */
476 extern int
477 globus_io_error_system_failure_get_save_errno (globus_object_t * error)
478 ;
479 
480 /* set the save_errno instance data of an error
481  * derived from GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE */
482 extern void
483 globus_io_error_system_failure_set_save_errno (
484  globus_object_t * error,
485  int value)
486 ;
487 
488 
489 extern const globus_object_type_t
490  GLOBUS_IO_ERROR_TYPE_EOF_DEFINITION;
491 
492 #define GLOBUS_IO_ERROR_TYPE_EOF \
493  (&GLOBUS_IO_ERROR_TYPE_EOF_DEFINITION)
494 
495 /* allocate and initialize an error of type
496  * GLOBUS_IO_ERROR_TYPE_EOF */
497 extern globus_object_t *
498 globus_io_error_construct_eof (
500  globus_object_t * cause,
501  globus_io_handle_t * handle);
502 
503 /* initialize and return an error of type
504  * GLOBUS_IO_ERROR_TYPE_EOF */
505 extern globus_object_t *
506 globus_io_error_initialize_eof (
507  globus_object_t * error,
509  globus_object_t * cause,
510  globus_io_handle_t * handle);
511 
512 
513 extern const globus_object_type_t
514  GLOBUS_IO_ERROR_TYPE_IO_CANCELLED_DEFINITION;
515 
516 #define GLOBUS_IO_ERROR_TYPE_IO_CANCELLED \
517  (&GLOBUS_IO_ERROR_TYPE_IO_CANCELLED_DEFINITION)
518 
519 /* allocate and initialize an error of type
520  * GLOBUS_IO_ERROR_TYPE_IO_CANCELLED */
521 extern globus_object_t *
522 globus_io_error_construct_io_cancelled (
524  globus_object_t * cause,
525  globus_io_handle_t * handle);
526 
527 /* initialize and return an error of type
528  * GLOBUS_IO_ERROR_TYPE_IO_CANCELLED */
529 extern globus_object_t *
530 globus_io_error_initialize_io_cancelled (
531  globus_object_t * error,
533  globus_object_t * cause,
534  globus_io_handle_t * handle);
535 
536 
537 extern const globus_object_type_t
538  GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER_DEFINITION;
539 
540 #define GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER \
541  (&GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER_DEFINITION)
542 
543 /* allocate and initialize an error of type
544  * GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER */
545 extern globus_object_t *
546 globus_io_error_construct_bad_parameter (
548  globus_object_t * cause,
549  char * name,
550  int position,
551  char * function);
552 
553 /* initialize and return an error of type
554  * GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER */
555 extern globus_object_t *
556 globus_io_error_initialize_bad_parameter (
557  globus_object_t * error,
559  globus_object_t * cause,
560  char * name,
561  int position,
562  char * function);
563 
564 /* return the name instance data of an error
565  * derived from GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER */
566 extern char *
567 globus_io_error_bad_parameter_get_name (globus_object_t * error)
568 ;
569 
570 /* set the name instance data of an error
571  * derived from GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER */
572 extern void
573 globus_io_error_bad_parameter_set_name (
574  globus_object_t * error,
575  char * value)
576 ;
577 
578 /* return the position instance data of an error
579  * derived from GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER */
580 extern int
581 globus_io_error_bad_parameter_get_position (globus_object_t * error)
582 ;
583 
584 /* set the position instance data of an error
585  * derived from GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER */
586 extern void
587 globus_io_error_bad_parameter_set_position (
588  globus_object_t * error,
589  int value)
590 ;
591 
592 /* return the function instance data of an error
593  * derived from GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER */
594 extern char *
595 globus_io_error_bad_parameter_get_function (globus_object_t * error)
596 ;
597 
598 /* set the function instance data of an error
599  * derived from GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER */
600 extern void
601 globus_io_error_bad_parameter_set_function (
602  globus_object_t * error,
603  char * value)
604 ;
605 
606 
607 extern const globus_object_type_t
608  GLOBUS_IO_ERROR_TYPE_BAD_POINTER_DEFINITION;
609 
610 #define GLOBUS_IO_ERROR_TYPE_BAD_POINTER \
611  (&GLOBUS_IO_ERROR_TYPE_BAD_POINTER_DEFINITION)
612 
613 /* allocate and initialize an error of type
614  * GLOBUS_IO_ERROR_TYPE_BAD_POINTER */
615 extern globus_object_t *
616 globus_io_error_construct_bad_pointer (
618  globus_object_t * cause,
619  char * name,
620  int position,
621  char * function);
622 
623 /* initialize and return an error of type
624  * GLOBUS_IO_ERROR_TYPE_BAD_POINTER */
625 extern globus_object_t *
626 globus_io_error_initialize_bad_pointer (
627  globus_object_t * error,
629  globus_object_t * cause,
630  char * name,
631  int position,
632  char * function);
633 
634 
635 extern const globus_object_type_t
636  GLOBUS_IO_ERROR_TYPE_NULL_PARAMETER_DEFINITION;
637 
638 #define GLOBUS_IO_ERROR_TYPE_NULL_PARAMETER \
639  (&GLOBUS_IO_ERROR_TYPE_NULL_PARAMETER_DEFINITION)
640 
641 /* allocate and initialize an error of type
642  * GLOBUS_IO_ERROR_TYPE_NULL_PARAMETER */
643 extern globus_object_t *
644 globus_io_error_construct_null_parameter (
646  globus_object_t * cause,
647  char * name,
648  int position,
649  char * function);
650 
651 /* initialize and return an error of type
652  * GLOBUS_IO_ERROR_TYPE_NULL_PARAMETER */
653 extern globus_object_t *
654 globus_io_error_initialize_null_parameter (
655  globus_object_t * error,
657  globus_object_t * cause,
658  char * name,
659  int position,
660  char * function);
661 
662 
663 extern const globus_object_type_t
664  GLOBUS_IO_ERROR_TYPE_INVALID_TYPE_DEFINITION;
665 
666 #define GLOBUS_IO_ERROR_TYPE_INVALID_TYPE \
667  (&GLOBUS_IO_ERROR_TYPE_INVALID_TYPE_DEFINITION)
668 
669 /* allocate and initialize an error of type
670  * GLOBUS_IO_ERROR_TYPE_INVALID_TYPE */
671 extern globus_object_t *
672 globus_io_error_construct_invalid_type (
674  globus_object_t * cause,
675  char * name,
676  int position,
677  char * function,
678  char * required_type_string);
679 
680 /* initialize and return an error of type
681  * GLOBUS_IO_ERROR_TYPE_INVALID_TYPE */
682 extern globus_object_t *
683 globus_io_error_initialize_invalid_type (
684  globus_object_t * error,
686  globus_object_t * cause,
687  char * name,
688  int position,
689  char * function,
690  char * required_type_string);
691 
692 /* return the required_type_string instance data of an error
693  * derived from GLOBUS_IO_ERROR_TYPE_INVALID_TYPE */
694 extern char *
695 globus_io_error_invalid_type_get_required_type_string (globus_object_t * error)
696 ;
697 
698 /* set the required_type_string instance data of an error
699  * derived from GLOBUS_IO_ERROR_TYPE_INVALID_TYPE */
700 extern void
701 globus_io_error_invalid_type_set_required_type_string (
702  globus_object_t * error,
703  char * value)
704 ;
705 
706 
707 extern const globus_object_type_t
708  GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE_DEFINITION;
709 
710 #define GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE \
711  (&GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE_DEFINITION)
712 
713 /* allocate and initialize an error of type
714  * GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE */
715 extern globus_object_t *
716 globus_io_error_construct_immutable_attribute (
718  globus_object_t * cause,
719  char * name,
720  int position,
721  char * function,
722  char * attribute_name);
723 
724 /* initialize and return an error of type
725  * GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE */
726 extern globus_object_t *
727 globus_io_error_initialize_immutable_attribute (
728  globus_object_t * error,
730  globus_object_t * cause,
731  char * name,
732  int position,
733  char * function,
734  char * attribute_name);
735 
736 /* return the attribute_name instance data of an error
737  * derived from GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE */
738 extern char *
739 globus_io_error_immutable_attribute_get_attribute_name (globus_object_t * error)
740 ;
741 
742 /* set the attribute_name instance data of an error
743  * derived from GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE */
744 extern void
745 globus_io_error_immutable_attribute_set_attribute_name (
746  globus_object_t * error,
747  char * value)
748 ;
749 
750 
751 extern const globus_object_type_t
752  GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH_DEFINITION;
753 
754 #define GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH \
755  (&GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH_DEFINITION)
756 
757 /* allocate and initialize an error of type
758  * GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH */
759 extern globus_object_t *
760 globus_io_error_construct_attribute_mismatch (
762  globus_object_t * cause,
763  char * name,
764  int position,
765  char * function,
766  char * attr1,
767  char * attr2);
768 
769 /* initialize and return an error of type
770  * GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH */
771 extern globus_object_t *
772 globus_io_error_initialize_attribute_mismatch (
773  globus_object_t * error,
775  globus_object_t * cause,
776  char * name,
777  int position,
778  char * function,
779  char * attr1,
780  char * attr2);
781 
782 /* return the attr1 instance data of an error
783  * derived from GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH */
784 extern char *
785 globus_io_error_attribute_mismatch_get_attr1 (globus_object_t * error)
786 ;
787 
788 /* set the attr1 instance data of an error
789  * derived from GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH */
790 extern void
791 globus_io_error_attribute_mismatch_set_attr1 (
792  globus_object_t * error,
793  char * value)
794 ;
795 
796 /* return the attr2 instance data of an error
797  * derived from GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH */
798 extern char *
799 globus_io_error_attribute_mismatch_get_attr2 (globus_object_t * error)
800 ;
801 
802 /* set the attr2 instance data of an error
803  * derived from GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH */
804 extern void
805 globus_io_error_attribute_mismatch_set_attr2 (
806  globus_object_t * error,
807  char * value)
808 ;
809 
810 
811 extern const globus_object_type_t
812  GLOBUS_IO_ERROR_TYPE_INVALID_NAME_DEFINITION;
813 
814 #define GLOBUS_IO_ERROR_TYPE_INVALID_NAME \
815  (&GLOBUS_IO_ERROR_TYPE_INVALID_NAME_DEFINITION)
816 
817 /* allocate and initialize an error of type
818  * GLOBUS_IO_ERROR_TYPE_INVALID_NAME */
819 extern globus_object_t *
820 globus_io_error_construct_invalid_name (
822  globus_object_t * cause,
823  char * name,
824  int position,
825  char * function,
826  char * unresolvable_name);
827 
828 /* initialize and return an error of type
829  * GLOBUS_IO_ERROR_TYPE_INVALID_NAME */
830 extern globus_object_t *
831 globus_io_error_initialize_invalid_name (
832  globus_object_t * error,
834  globus_object_t * cause,
835  char * name,
836  int position,
837  char * function,
838  char * unresolvable_name);
839 
840 /* return the unresolvable_name instance data of an error
841  * derived from GLOBUS_IO_ERROR_TYPE_INVALID_NAME */
842 extern char *
843 globus_io_error_invalid_name_get_unresolvable_name (globus_object_t * error)
844 ;
845 
846 /* set the unresolvable_name instance data of an error
847  * derived from GLOBUS_IO_ERROR_TYPE_INVALID_NAME */
848 extern void
849 globus_io_error_invalid_name_set_unresolvable_name (
850  globus_object_t * error,
851  char * value)
852 ;
853 
854 
855 extern const globus_object_type_t
856  GLOBUS_IO_ERROR_TYPE_HOST_NOT_FOUND_DEFINITION;
857 
858 #define GLOBUS_IO_ERROR_TYPE_HOST_NOT_FOUND \
859  (&GLOBUS_IO_ERROR_TYPE_HOST_NOT_FOUND_DEFINITION)
860 
861 /* allocate and initialize an error of type
862  * GLOBUS_IO_ERROR_TYPE_HOST_NOT_FOUND */
863 extern globus_object_t *
864 globus_io_error_construct_host_not_found (
866  globus_object_t * cause,
867  char * name,
868  int position,
869  char * function,
870  char * unresolvable_name);
871 
872 /* initialize and return an error of type
873  * GLOBUS_IO_ERROR_TYPE_HOST_NOT_FOUND */
874 extern globus_object_t *
875 globus_io_error_initialize_host_not_found (
876  globus_object_t * error,
878  globus_object_t * cause,
879  char * name,
880  int position,
881  char * function,
882  char * unresolvable_name);
883 
884 
885 extern const globus_object_type_t
886  GLOBUS_IO_ERROR_TYPE_INVALID_PORT_DEFINITION;
887 
888 #define GLOBUS_IO_ERROR_TYPE_INVALID_PORT \
889  (&GLOBUS_IO_ERROR_TYPE_INVALID_PORT_DEFINITION)
890 
891 /* allocate and initialize an error of type
892  * GLOBUS_IO_ERROR_TYPE_INVALID_PORT */
893 extern globus_object_t *
894 globus_io_error_construct_invalid_port (
896  globus_object_t * cause,
897  char * name,
898  int position,
899  char * function);
900 
901 /* initialize and return an error of type
902  * GLOBUS_IO_ERROR_TYPE_INVALID_PORT */
903 extern globus_object_t *
904 globus_io_error_initialize_invalid_port (
905  globus_object_t * error,
907  globus_object_t * cause,
908  char * name,
909  int position,
910  char * function);
911 
912 
913 extern const globus_object_type_t
914  GLOBUS_IO_ERROR_TYPE_RESTRICTED_PORT_DEFINITION;
915 
916 #define GLOBUS_IO_ERROR_TYPE_RESTRICTED_PORT \
917  (&GLOBUS_IO_ERROR_TYPE_RESTRICTED_PORT_DEFINITION)
918 
919 /* allocate and initialize an error of type
920  * GLOBUS_IO_ERROR_TYPE_RESTRICTED_PORT */
921 extern globus_object_t *
922 globus_io_error_construct_restricted_port (
924  globus_object_t * cause,
925  char * name,
926  int position,
927  char * function);
928 
929 /* initialize and return an error of type
930  * GLOBUS_IO_ERROR_TYPE_RESTRICTED_PORT */
931 extern globus_object_t *
932 globus_io_error_initialize_restricted_port (
933  globus_object_t * error,
935  globus_object_t * cause,
936  char * name,
937  int position,
938  char * function);
939 
940 
941 extern const globus_object_type_t
942  GLOBUS_IO_ERROR_TYPE_PORT_IN_USE_DEFINITION;
943 
944 #define GLOBUS_IO_ERROR_TYPE_PORT_IN_USE \
945  (&GLOBUS_IO_ERROR_TYPE_PORT_IN_USE_DEFINITION)
946 
947 /* allocate and initialize an error of type
948  * GLOBUS_IO_ERROR_TYPE_PORT_IN_USE */
949 extern globus_object_t *
950 globus_io_error_construct_port_in_use (
952  globus_object_t * cause,
953  char * name,
954  int position,
955  char * function);
956 
957 /* initialize and return an error of type
958  * GLOBUS_IO_ERROR_TYPE_PORT_IN_USE */
959 extern globus_object_t *
960 globus_io_error_initialize_port_in_use (
961  globus_object_t * error,
963  globus_object_t * cause,
964  char * name,
965  int position,
966  char * function);
967 
968 
969 extern const globus_object_type_t
970  GLOBUS_IO_ERROR_TYPE_NOT_INITIALIZED_DEFINITION;
971 
972 #define GLOBUS_IO_ERROR_TYPE_NOT_INITIALIZED \
973  (&GLOBUS_IO_ERROR_TYPE_NOT_INITIALIZED_DEFINITION)
974 
975 /* allocate and initialize an error of type
976  * GLOBUS_IO_ERROR_TYPE_NOT_INITIALIZED */
977 extern globus_object_t *
978 globus_io_error_construct_not_initialized (
980  globus_object_t * cause,
981  char * name,
982  int position,
983  char * function);
984 
985 /* initialize and return an error of type
986  * GLOBUS_IO_ERROR_TYPE_NOT_INITIALIZED */
987 extern globus_object_t *
988 globus_io_error_initialize_not_initialized (
989  globus_object_t * error,
991  globus_object_t * cause,
992  char * name,
993  int position,
994  char * function);
995 
996 
997 extern const globus_object_type_t
998  GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR_DEFINITION;
999 
1000 #define GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR \
1001  (&GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR_DEFINITION)
1002 
1003 /* allocate and initialize an error of type
1004  * GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR */
1005 extern globus_object_t *
1006 globus_io_error_construct_registration_error (
1007  globus_module_descriptor_t * source,
1008  globus_object_t * cause,
1009  globus_io_handle_t * handle);
1010 
1011 /* initialize and return an error of type
1012  * GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR */
1013 extern globus_object_t *
1014 globus_io_error_initialize_registration_error (
1015  globus_object_t * error,
1016  globus_module_descriptor_t * source,
1017  globus_object_t * cause,
1018  globus_io_handle_t * handle);
1019 
1020 /* return the handle instance data of an error
1021  * derived from GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR */
1022 extern globus_io_handle_t *
1023 globus_io_error_registration_error_get_handle (globus_object_t * error)
1024 ;
1025 
1026 /* set the handle instance data of an error
1027  * derived from GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR */
1028 extern void
1029 globus_io_error_registration_error_set_handle (
1030  globus_object_t * error,
1031  globus_io_handle_t * value)
1032 ;
1033 
1034 
1035 extern const globus_object_type_t
1036  GLOBUS_IO_ERROR_TYPE_READ_ALREADY_REGISTERED_DEFINITION;
1037 
1038 #define GLOBUS_IO_ERROR_TYPE_READ_ALREADY_REGISTERED \
1039  (&GLOBUS_IO_ERROR_TYPE_READ_ALREADY_REGISTERED_DEFINITION)
1040 
1041 /* allocate and initialize an error of type
1042  * GLOBUS_IO_ERROR_TYPE_READ_ALREADY_REGISTERED */
1043 extern globus_object_t *
1044 globus_io_error_construct_read_already_registered (
1045  globus_module_descriptor_t * source,
1046  globus_object_t * cause,
1047  globus_io_handle_t * handle);
1048 
1049 /* initialize and return an error of type
1050  * GLOBUS_IO_ERROR_TYPE_READ_ALREADY_REGISTERED */
1051 extern globus_object_t *
1052 globus_io_error_initialize_read_already_registered (
1053  globus_object_t * error,
1054  globus_module_descriptor_t * source,
1055  globus_object_t * cause,
1056  globus_io_handle_t * handle);
1057 
1058 
1059 extern const globus_object_type_t
1060  GLOBUS_IO_ERROR_TYPE_WRITE_ALREADY_REGISTERED_DEFINITION;
1061 
1062 #define GLOBUS_IO_ERROR_TYPE_WRITE_ALREADY_REGISTERED \
1063  (&GLOBUS_IO_ERROR_TYPE_WRITE_ALREADY_REGISTERED_DEFINITION)
1064 
1065 /* allocate and initialize an error of type
1066  * GLOBUS_IO_ERROR_TYPE_WRITE_ALREADY_REGISTERED */
1067 extern globus_object_t *
1068 globus_io_error_construct_write_already_registered (
1069  globus_module_descriptor_t * source,
1070  globus_object_t * cause,
1071  globus_io_handle_t * handle);
1072 
1073 /* initialize and return an error of type
1074  * GLOBUS_IO_ERROR_TYPE_WRITE_ALREADY_REGISTERED */
1075 extern globus_object_t *
1076 globus_io_error_initialize_write_already_registered (
1077  globus_object_t * error,
1078  globus_module_descriptor_t * source,
1079  globus_object_t * cause,
1080  globus_io_handle_t * handle);
1081 
1082 
1083 extern const globus_object_type_t
1084  GLOBUS_IO_ERROR_TYPE_EXCEPT_ALREADY_REGISTERED_DEFINITION;
1085 
1086 #define GLOBUS_IO_ERROR_TYPE_EXCEPT_ALREADY_REGISTERED \
1087  (&GLOBUS_IO_ERROR_TYPE_EXCEPT_ALREADY_REGISTERED_DEFINITION)
1088 
1089 /* allocate and initialize an error of type
1090  * GLOBUS_IO_ERROR_TYPE_EXCEPT_ALREADY_REGISTERED */
1091 extern globus_object_t *
1092 globus_io_error_construct_except_already_registered (
1093  globus_module_descriptor_t * source,
1094  globus_object_t * cause,
1095  globus_io_handle_t * handle);
1096 
1097 /* initialize and return an error of type
1098  * GLOBUS_IO_ERROR_TYPE_EXCEPT_ALREADY_REGISTERED */
1099 extern globus_object_t *
1100 globus_io_error_initialize_except_already_registered (
1101  globus_object_t * error,
1102  globus_module_descriptor_t * source,
1103  globus_object_t * cause,
1104  globus_io_handle_t * handle);
1105 
1106 
1107 extern const globus_object_type_t
1108  GLOBUS_IO_ERROR_TYPE_CLOSE_ALREADY_REGISTERED_DEFINITION;
1109 
1110 #define GLOBUS_IO_ERROR_TYPE_CLOSE_ALREADY_REGISTERED \
1111  (&GLOBUS_IO_ERROR_TYPE_CLOSE_ALREADY_REGISTERED_DEFINITION)
1112 
1113 /* allocate and initialize an error of type
1114  * GLOBUS_IO_ERROR_TYPE_CLOSE_ALREADY_REGISTERED */
1115 extern globus_object_t *
1116 globus_io_error_construct_close_already_registered (
1117  globus_module_descriptor_t * source,
1118  globus_object_t * cause,
1119  globus_io_handle_t * handle);
1120 
1121 /* initialize and return an error of type
1122  * GLOBUS_IO_ERROR_TYPE_CLOSE_ALREADY_REGISTERED */
1123 extern globus_object_t *
1124 globus_io_error_initialize_close_already_registered (
1125  globus_object_t * error,
1126  globus_module_descriptor_t * source,
1127  globus_object_t * cause,
1128  globus_io_handle_t * handle);
1129 
1130 
1131 extern const globus_object_type_t
1132  GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR_DEFINITION;
1133 
1134 #define GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR \
1135  (&GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR_DEFINITION)
1136 
1137 /* allocate and initialize an error of type
1138  * GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR */
1139 extern globus_object_t *
1140 globus_io_error_construct_internal_error (
1141  globus_module_descriptor_t * source,
1142  globus_object_t * cause,
1143  char * function);
1144 
1145 /* initialize and return an error of type
1146  * GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR */
1147 extern globus_object_t *
1148 globus_io_error_initialize_internal_error (
1149  globus_object_t * error,
1150  globus_module_descriptor_t * source,
1151  globus_object_t * cause,
1152  char * function);
1153 
1154 /* return the function instance data of an error
1155  * derived from GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR */
1156 extern char *
1157 globus_io_error_internal_error_get_function (globus_object_t * error)
1158 ;
1159 
1160 /* set the function instance data of an error
1161  * derived from GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR */
1162 extern void
1163 globus_io_error_internal_error_set_function (
1164  globus_object_t * error,
1165  char * value)
1166 ;
1167 
1168 
1169 
1170 #ifdef __cplusplus
1171 }
1172 #endif
1173 
1174 #endif /* GLOBUS_IO_ERROR_HIERARCHY_H */
1175 
Globus Error Handling.
Headers common to all of Globus.
Module Descriptor.
Definition: globus_module.h:71