18 #ifndef GLOBUS_IO_ERROR_HIERARCHY_H
19 #define GLOBUS_IO_ERROR_HIERARCHY_H
24 #include "globus_object.h"
26 #include "globus_io.h"
28 #define GLOBUS_IO_ERROR_TYPE_BASE_DEFINITION GLOBUS_ERROR_TYPE_BASE_DEFINITION
29 #define globus_io_error_initialize_base globus_error_initialize_base
39 extern const globus_object_type_t
40 GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED_DEFINITION;
42 #define GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED \
43 (&GLOBUS_IO_ERROR_TYPE_SECURITY_FAILED_DEFINITION)
47 extern globus_object_t *
48 globus_io_error_construct_security_failed (
50 globus_object_t * cause,
51 globus_io_handle_t * handle,
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,
70 extern globus_io_handle_t *
71 globus_io_error_security_failed_get_handle (globus_object_t * error)
77 globus_io_error_security_failed_set_handle (
78 globus_object_t * error,
79 globus_io_handle_t * value)
85 globus_io_error_security_failed_get_maj_stat (globus_object_t * error)
91 globus_io_error_security_failed_set_maj_stat (
92 globus_object_t * error,
99 globus_io_error_security_failed_get_min_stat (globus_object_t * error)
105 globus_io_error_security_failed_set_min_stat (
106 globus_object_t * error,
113 globus_io_error_security_failed_get_token_stat (globus_object_t * error)
119 globus_io_error_security_failed_set_token_stat (
120 globus_object_t * error,
125 extern const globus_object_type_t
126 GLOBUS_IO_ERROR_TYPE_AUTHENTICATION_FAILED_DEFINITION;
128 #define GLOBUS_IO_ERROR_TYPE_AUTHENTICATION_FAILED \
129 (&GLOBUS_IO_ERROR_TYPE_AUTHENTICATION_FAILED_DEFINITION)
133 extern globus_object_t *
134 globus_io_error_construct_authentication_failed (
136 globus_object_t * cause,
137 globus_io_handle_t * handle,
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,
155 extern const globus_object_type_t
156 GLOBUS_IO_ERROR_TYPE_AUTHORIZATION_FAILED_DEFINITION;
158 #define GLOBUS_IO_ERROR_TYPE_AUTHORIZATION_FAILED \
159 (&GLOBUS_IO_ERROR_TYPE_AUTHORIZATION_FAILED_DEFINITION)
163 extern globus_object_t *
164 globus_io_error_construct_authorization_failed (
166 globus_object_t * cause,
167 globus_io_handle_t * handle,
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,
185 extern const globus_object_type_t
186 GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY_DEFINITION;
188 #define GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY \
189 (&GLOBUS_IO_ERROR_TYPE_UNAUTHORIZED_IDENTITY_DEFINITION)
193 extern globus_object_t *
194 globus_io_error_construct_unauthorized_identity (
196 globus_object_t * cause,
197 globus_io_handle_t * handle,
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,
219 globus_io_error_unauthorized_identity_get_identity (globus_object_t * error)
225 globus_io_error_unauthorized_identity_set_identity (
226 globus_object_t * error,
231 extern const globus_object_type_t
232 GLOBUS_IO_ERROR_TYPE_BAD_PROTECTION_DEFINITION;
234 #define GLOBUS_IO_ERROR_TYPE_BAD_PROTECTION \
235 (&GLOBUS_IO_ERROR_TYPE_BAD_PROTECTION_DEFINITION)
239 extern globus_object_t *
240 globus_io_error_construct_bad_protection (
242 globus_object_t * cause,
243 globus_io_handle_t * handle,
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,
261 extern const globus_object_type_t
262 GLOBUS_IO_ERROR_TYPE_NO_SEC_CONTEXT_DEFINITION;
264 #define GLOBUS_IO_ERROR_TYPE_NO_SEC_CONTEXT \
265 (&GLOBUS_IO_ERROR_TYPE_NO_SEC_CONTEXT_DEFINITION)
269 extern globus_object_t *
270 globus_io_error_construct_no_sec_context (
272 globus_object_t * cause,
273 globus_io_handle_t * handle,
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,
291 extern const globus_object_type_t
292 GLOBUS_IO_ERROR_TYPE_CONTEXT_EXPIRED_DEFINITION;
294 #define GLOBUS_IO_ERROR_TYPE_CONTEXT_EXPIRED \
295 (&GLOBUS_IO_ERROR_TYPE_CONTEXT_EXPIRED_DEFINITION)
299 extern globus_object_t *
300 globus_io_error_construct_context_expired (
302 globus_object_t * cause,
303 globus_io_handle_t * handle,
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,
321 extern const globus_object_type_t
322 GLOBUS_IO_ERROR_TYPE_CREDENTIALS_EXPIRED_DEFINITION;
324 #define GLOBUS_IO_ERROR_TYPE_CREDENTIALS_EXPIRED \
325 (&GLOBUS_IO_ERROR_TYPE_CREDENTIALS_EXPIRED_DEFINITION)
329 extern globus_object_t *
330 globus_io_error_construct_credentials_expired (
332 globus_object_t * cause,
333 globus_io_handle_t * handle,
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,
351 extern const globus_object_type_t
352 GLOBUS_IO_ERROR_TYPE_NO_CREDENTIALS_DEFINITION;
354 #define GLOBUS_IO_ERROR_TYPE_NO_CREDENTIALS \
355 (&GLOBUS_IO_ERROR_TYPE_NO_CREDENTIALS_DEFINITION)
359 extern globus_object_t *
360 globus_io_error_construct_no_credentials (
362 globus_object_t * cause,
363 globus_io_handle_t * handle,
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,
381 extern const globus_object_type_t
382 GLOBUS_IO_ERROR_TYPE_INVALID_CREDENTIALS_DEFINITION;
384 #define GLOBUS_IO_ERROR_TYPE_INVALID_CREDENTIALS \
385 (&GLOBUS_IO_ERROR_TYPE_INVALID_CREDENTIALS_DEFINITION)
389 extern globus_object_t *
390 globus_io_error_construct_invalid_credentials (
392 globus_object_t * cause,
393 globus_io_handle_t * handle,
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,
411 extern const globus_object_type_t
412 GLOBUS_IO_ERROR_TYPE_IO_FAILED_DEFINITION;
414 #define GLOBUS_IO_ERROR_TYPE_IO_FAILED \
415 (&GLOBUS_IO_ERROR_TYPE_IO_FAILED_DEFINITION)
419 extern globus_object_t *
420 globus_io_error_construct_io_failed (
422 globus_object_t * cause,
423 globus_io_handle_t * handle);
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);
436 extern globus_io_handle_t *
437 globus_io_error_io_failed_get_handle (globus_object_t * error)
443 globus_io_error_io_failed_set_handle (
444 globus_object_t * error,
445 globus_io_handle_t * value)
449 extern const globus_object_type_t
450 GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE_DEFINITION;
452 #define GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE \
453 (&GLOBUS_IO_ERROR_TYPE_SYSTEM_FAILURE_DEFINITION)
457 extern globus_object_t *
458 globus_io_error_construct_system_failure (
460 globus_object_t * cause,
461 globus_io_handle_t * handle,
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,
477 globus_io_error_system_failure_get_save_errno (globus_object_t * error)
483 globus_io_error_system_failure_set_save_errno (
484 globus_object_t * error,
489 extern const globus_object_type_t
490 GLOBUS_IO_ERROR_TYPE_EOF_DEFINITION;
492 #define GLOBUS_IO_ERROR_TYPE_EOF \
493 (&GLOBUS_IO_ERROR_TYPE_EOF_DEFINITION)
497 extern globus_object_t *
498 globus_io_error_construct_eof (
500 globus_object_t * cause,
501 globus_io_handle_t * handle);
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);
513 extern const globus_object_type_t
514 GLOBUS_IO_ERROR_TYPE_IO_CANCELLED_DEFINITION;
516 #define GLOBUS_IO_ERROR_TYPE_IO_CANCELLED \
517 (&GLOBUS_IO_ERROR_TYPE_IO_CANCELLED_DEFINITION)
521 extern globus_object_t *
522 globus_io_error_construct_io_cancelled (
524 globus_object_t * cause,
525 globus_io_handle_t * handle);
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);
537 extern const globus_object_type_t
538 GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER_DEFINITION;
540 #define GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER \
541 (&GLOBUS_IO_ERROR_TYPE_BAD_PARAMETER_DEFINITION)
545 extern globus_object_t *
546 globus_io_error_construct_bad_parameter (
548 globus_object_t * cause,
555 extern globus_object_t *
556 globus_io_error_initialize_bad_parameter (
557 globus_object_t * error,
559 globus_object_t * cause,
567 globus_io_error_bad_parameter_get_name (globus_object_t * error)
573 globus_io_error_bad_parameter_set_name (
574 globus_object_t * error,
581 globus_io_error_bad_parameter_get_position (globus_object_t * error)
587 globus_io_error_bad_parameter_set_position (
588 globus_object_t * error,
595 globus_io_error_bad_parameter_get_function (globus_object_t * error)
601 globus_io_error_bad_parameter_set_function (
602 globus_object_t * error,
607 extern const globus_object_type_t
608 GLOBUS_IO_ERROR_TYPE_BAD_POINTER_DEFINITION;
610 #define GLOBUS_IO_ERROR_TYPE_BAD_POINTER \
611 (&GLOBUS_IO_ERROR_TYPE_BAD_POINTER_DEFINITION)
615 extern globus_object_t *
616 globus_io_error_construct_bad_pointer (
618 globus_object_t * cause,
625 extern globus_object_t *
626 globus_io_error_initialize_bad_pointer (
627 globus_object_t * error,
629 globus_object_t * cause,
635 extern const globus_object_type_t
636 GLOBUS_IO_ERROR_TYPE_NULL_PARAMETER_DEFINITION;
638 #define GLOBUS_IO_ERROR_TYPE_NULL_PARAMETER \
639 (&GLOBUS_IO_ERROR_TYPE_NULL_PARAMETER_DEFINITION)
643 extern globus_object_t *
644 globus_io_error_construct_null_parameter (
646 globus_object_t * cause,
653 extern globus_object_t *
654 globus_io_error_initialize_null_parameter (
655 globus_object_t * error,
657 globus_object_t * cause,
663 extern const globus_object_type_t
664 GLOBUS_IO_ERROR_TYPE_INVALID_TYPE_DEFINITION;
666 #define GLOBUS_IO_ERROR_TYPE_INVALID_TYPE \
667 (&GLOBUS_IO_ERROR_TYPE_INVALID_TYPE_DEFINITION)
671 extern globus_object_t *
672 globus_io_error_construct_invalid_type (
674 globus_object_t * cause,
678 char * required_type_string);
682 extern globus_object_t *
683 globus_io_error_initialize_invalid_type (
684 globus_object_t * error,
686 globus_object_t * cause,
690 char * required_type_string);
695 globus_io_error_invalid_type_get_required_type_string (globus_object_t * error)
701 globus_io_error_invalid_type_set_required_type_string (
702 globus_object_t * error,
707 extern const globus_object_type_t
708 GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE_DEFINITION;
710 #define GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE \
711 (&GLOBUS_IO_ERROR_TYPE_IMMUTABLE_ATTRIBUTE_DEFINITION)
715 extern globus_object_t *
716 globus_io_error_construct_immutable_attribute (
718 globus_object_t * cause,
722 char * attribute_name);
726 extern globus_object_t *
727 globus_io_error_initialize_immutable_attribute (
728 globus_object_t * error,
730 globus_object_t * cause,
734 char * attribute_name);
739 globus_io_error_immutable_attribute_get_attribute_name (globus_object_t * error)
745 globus_io_error_immutable_attribute_set_attribute_name (
746 globus_object_t * error,
751 extern const globus_object_type_t
752 GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH_DEFINITION;
754 #define GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH \
755 (&GLOBUS_IO_ERROR_TYPE_ATTRIBUTE_MISMATCH_DEFINITION)
759 extern globus_object_t *
760 globus_io_error_construct_attribute_mismatch (
762 globus_object_t * cause,
771 extern globus_object_t *
772 globus_io_error_initialize_attribute_mismatch (
773 globus_object_t * error,
775 globus_object_t * cause,
785 globus_io_error_attribute_mismatch_get_attr1 (globus_object_t * error)
791 globus_io_error_attribute_mismatch_set_attr1 (
792 globus_object_t * error,
799 globus_io_error_attribute_mismatch_get_attr2 (globus_object_t * error)
805 globus_io_error_attribute_mismatch_set_attr2 (
806 globus_object_t * error,
811 extern const globus_object_type_t
812 GLOBUS_IO_ERROR_TYPE_INVALID_NAME_DEFINITION;
814 #define GLOBUS_IO_ERROR_TYPE_INVALID_NAME \
815 (&GLOBUS_IO_ERROR_TYPE_INVALID_NAME_DEFINITION)
819 extern globus_object_t *
820 globus_io_error_construct_invalid_name (
822 globus_object_t * cause,
826 char * unresolvable_name);
830 extern globus_object_t *
831 globus_io_error_initialize_invalid_name (
832 globus_object_t * error,
834 globus_object_t * cause,
838 char * unresolvable_name);
843 globus_io_error_invalid_name_get_unresolvable_name (globus_object_t * error)
849 globus_io_error_invalid_name_set_unresolvable_name (
850 globus_object_t * error,
855 extern const globus_object_type_t
856 GLOBUS_IO_ERROR_TYPE_HOST_NOT_FOUND_DEFINITION;
858 #define GLOBUS_IO_ERROR_TYPE_HOST_NOT_FOUND \
859 (&GLOBUS_IO_ERROR_TYPE_HOST_NOT_FOUND_DEFINITION)
863 extern globus_object_t *
864 globus_io_error_construct_host_not_found (
866 globus_object_t * cause,
870 char * unresolvable_name);
874 extern globus_object_t *
875 globus_io_error_initialize_host_not_found (
876 globus_object_t * error,
878 globus_object_t * cause,
882 char * unresolvable_name);
885 extern const globus_object_type_t
886 GLOBUS_IO_ERROR_TYPE_INVALID_PORT_DEFINITION;
888 #define GLOBUS_IO_ERROR_TYPE_INVALID_PORT \
889 (&GLOBUS_IO_ERROR_TYPE_INVALID_PORT_DEFINITION)
893 extern globus_object_t *
894 globus_io_error_construct_invalid_port (
896 globus_object_t * cause,
903 extern globus_object_t *
904 globus_io_error_initialize_invalid_port (
905 globus_object_t * error,
907 globus_object_t * cause,
913 extern const globus_object_type_t
914 GLOBUS_IO_ERROR_TYPE_RESTRICTED_PORT_DEFINITION;
916 #define GLOBUS_IO_ERROR_TYPE_RESTRICTED_PORT \
917 (&GLOBUS_IO_ERROR_TYPE_RESTRICTED_PORT_DEFINITION)
921 extern globus_object_t *
922 globus_io_error_construct_restricted_port (
924 globus_object_t * cause,
931 extern globus_object_t *
932 globus_io_error_initialize_restricted_port (
933 globus_object_t * error,
935 globus_object_t * cause,
941 extern const globus_object_type_t
942 GLOBUS_IO_ERROR_TYPE_PORT_IN_USE_DEFINITION;
944 #define GLOBUS_IO_ERROR_TYPE_PORT_IN_USE \
945 (&GLOBUS_IO_ERROR_TYPE_PORT_IN_USE_DEFINITION)
949 extern globus_object_t *
950 globus_io_error_construct_port_in_use (
952 globus_object_t * cause,
959 extern globus_object_t *
960 globus_io_error_initialize_port_in_use (
961 globus_object_t * error,
963 globus_object_t * cause,
969 extern const globus_object_type_t
970 GLOBUS_IO_ERROR_TYPE_NOT_INITIALIZED_DEFINITION;
972 #define GLOBUS_IO_ERROR_TYPE_NOT_INITIALIZED \
973 (&GLOBUS_IO_ERROR_TYPE_NOT_INITIALIZED_DEFINITION)
977 extern globus_object_t *
978 globus_io_error_construct_not_initialized (
980 globus_object_t * cause,
987 extern globus_object_t *
988 globus_io_error_initialize_not_initialized (
989 globus_object_t * error,
991 globus_object_t * cause,
997 extern const globus_object_type_t
998 GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR_DEFINITION;
1000 #define GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR \
1001 (&GLOBUS_IO_ERROR_TYPE_REGISTRATION_ERROR_DEFINITION)
1005 extern globus_object_t *
1006 globus_io_error_construct_registration_error (
1008 globus_object_t * cause,
1009 globus_io_handle_t * handle);
1013 extern globus_object_t *
1014 globus_io_error_initialize_registration_error (
1015 globus_object_t * error,
1017 globus_object_t * cause,
1018 globus_io_handle_t * handle);
1022 extern globus_io_handle_t *
1023 globus_io_error_registration_error_get_handle (globus_object_t * error)
1029 globus_io_error_registration_error_set_handle (
1030 globus_object_t * error,
1031 globus_io_handle_t * value)
1035 extern const globus_object_type_t
1036 GLOBUS_IO_ERROR_TYPE_READ_ALREADY_REGISTERED_DEFINITION;
1038 #define GLOBUS_IO_ERROR_TYPE_READ_ALREADY_REGISTERED \
1039 (&GLOBUS_IO_ERROR_TYPE_READ_ALREADY_REGISTERED_DEFINITION)
1043 extern globus_object_t *
1044 globus_io_error_construct_read_already_registered (
1046 globus_object_t * cause,
1047 globus_io_handle_t * handle);
1051 extern globus_object_t *
1052 globus_io_error_initialize_read_already_registered (
1053 globus_object_t * error,
1055 globus_object_t * cause,
1056 globus_io_handle_t * handle);
1059 extern const globus_object_type_t
1060 GLOBUS_IO_ERROR_TYPE_WRITE_ALREADY_REGISTERED_DEFINITION;
1062 #define GLOBUS_IO_ERROR_TYPE_WRITE_ALREADY_REGISTERED \
1063 (&GLOBUS_IO_ERROR_TYPE_WRITE_ALREADY_REGISTERED_DEFINITION)
1067 extern globus_object_t *
1068 globus_io_error_construct_write_already_registered (
1070 globus_object_t * cause,
1071 globus_io_handle_t * handle);
1075 extern globus_object_t *
1076 globus_io_error_initialize_write_already_registered (
1077 globus_object_t * error,
1079 globus_object_t * cause,
1080 globus_io_handle_t * handle);
1083 extern const globus_object_type_t
1084 GLOBUS_IO_ERROR_TYPE_EXCEPT_ALREADY_REGISTERED_DEFINITION;
1086 #define GLOBUS_IO_ERROR_TYPE_EXCEPT_ALREADY_REGISTERED \
1087 (&GLOBUS_IO_ERROR_TYPE_EXCEPT_ALREADY_REGISTERED_DEFINITION)
1091 extern globus_object_t *
1092 globus_io_error_construct_except_already_registered (
1094 globus_object_t * cause,
1095 globus_io_handle_t * handle);
1099 extern globus_object_t *
1100 globus_io_error_initialize_except_already_registered (
1101 globus_object_t * error,
1103 globus_object_t * cause,
1104 globus_io_handle_t * handle);
1107 extern const globus_object_type_t
1108 GLOBUS_IO_ERROR_TYPE_CLOSE_ALREADY_REGISTERED_DEFINITION;
1110 #define GLOBUS_IO_ERROR_TYPE_CLOSE_ALREADY_REGISTERED \
1111 (&GLOBUS_IO_ERROR_TYPE_CLOSE_ALREADY_REGISTERED_DEFINITION)
1115 extern globus_object_t *
1116 globus_io_error_construct_close_already_registered (
1118 globus_object_t * cause,
1119 globus_io_handle_t * handle);
1123 extern globus_object_t *
1124 globus_io_error_initialize_close_already_registered (
1125 globus_object_t * error,
1127 globus_object_t * cause,
1128 globus_io_handle_t * handle);
1131 extern const globus_object_type_t
1132 GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR_DEFINITION;
1134 #define GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR \
1135 (&GLOBUS_IO_ERROR_TYPE_INTERNAL_ERROR_DEFINITION)
1139 extern globus_object_t *
1140 globus_io_error_construct_internal_error (
1142 globus_object_t * cause,
1147 extern globus_object_t *
1148 globus_io_error_initialize_internal_error (
1149 globus_object_t * error,
1151 globus_object_t * cause,
1157 globus_io_error_internal_error_get_function (globus_object_t * error)
1163 globus_io_error_internal_error_set_function (
1164 globus_object_t * error,
Headers common to all of Globus.
Module Descriptor.
Definition: globus_module.h:71