18 #ifndef GLOBUS_ERROR_HIERARCHY_H
19 #define GLOBUS_ERROR_HIERARCHY_H
23 #include "globus_object.h"
34 extern const globus_object_type_t
35 GLOBUS_ERROR_TYPE_NO_AUTHENTICATION_DEFINITION;
37 #define GLOBUS_ERROR_TYPE_NO_AUTHENTICATION \
38 (&GLOBUS_ERROR_TYPE_NO_AUTHENTICATION_DEFINITION)
42 extern globus_object_t *
43 globus_error_construct_no_authentication (
45 globus_object_t * base_cause);
49 extern globus_object_t *
50 globus_error_initialize_no_authentication (
51 globus_object_t * error,
53 globus_object_t * base_cause);
56 extern const globus_object_type_t
57 GLOBUS_ERROR_TYPE_NO_CREDENTIALS_DEFINITION;
59 #define GLOBUS_ERROR_TYPE_NO_CREDENTIALS \
60 (&GLOBUS_ERROR_TYPE_NO_CREDENTIALS_DEFINITION)
64 extern globus_object_t *
65 globus_error_construct_no_credentials (
67 globus_object_t * base_cause,
68 globus_object_t * no_credentials_file);
72 extern globus_object_t *
73 globus_error_initialize_no_credentials (
74 globus_object_t * error,
76 globus_object_t * base_cause,
77 globus_object_t * no_credentials_file);
81 extern globus_object_t *
82 globus_error_no_credentials_get_no_credentials_file (globus_object_t * error)
88 globus_error_no_credentials_set_no_credentials_file (
89 globus_object_t * error,
90 globus_object_t * value)
94 extern const globus_object_type_t
95 GLOBUS_ERROR_TYPE_NO_TRUST_DEFINITION;
97 #define GLOBUS_ERROR_TYPE_NO_TRUST \
98 (&GLOBUS_ERROR_TYPE_NO_TRUST_DEFINITION)
102 extern globus_object_t *
103 globus_error_construct_no_trust (
105 globus_object_t * base_cause,
106 globus_object_t * no_trust_truster,
107 globus_object_t * no_trust_trustee);
111 extern globus_object_t *
112 globus_error_initialize_no_trust (
113 globus_object_t * error,
115 globus_object_t * base_cause,
116 globus_object_t * no_trust_truster,
117 globus_object_t * no_trust_trustee);
121 extern globus_object_t *
122 globus_error_no_trust_get_no_trust_truster (globus_object_t * error)
128 globus_error_no_trust_set_no_trust_truster (
129 globus_object_t * error,
130 globus_object_t * value)
135 extern globus_object_t *
136 globus_error_no_trust_get_no_trust_trustee (globus_object_t * error)
142 globus_error_no_trust_set_no_trust_trustee (
143 globus_object_t * error,
144 globus_object_t * value)
148 extern const globus_object_type_t
149 GLOBUS_ERROR_TYPE_INVALID_CREDENTIALS_DEFINITION;
151 #define GLOBUS_ERROR_TYPE_INVALID_CREDENTIALS \
152 (&GLOBUS_ERROR_TYPE_INVALID_CREDENTIALS_DEFINITION)
156 extern globus_object_t *
157 globus_error_construct_invalid_credentials (
159 globus_object_t * base_cause,
160 globus_object_t * invalid_credentials_start_time,
161 globus_object_t * invalid_credentials_end_time,
162 globus_object_t * invalid_credentials_attempt_time);
166 extern globus_object_t *
167 globus_error_initialize_invalid_credentials (
168 globus_object_t * error,
170 globus_object_t * base_cause,
171 globus_object_t * invalid_credentials_start_time,
172 globus_object_t * invalid_credentials_end_time,
173 globus_object_t * invalid_credentials_attempt_time);
177 extern globus_object_t *
178 globus_error_invalid_credentials_get_invalid_credentials_start_time (globus_object_t * error)
184 globus_error_invalid_credentials_set_invalid_credentials_start_time (
185 globus_object_t * error,
186 globus_object_t * value)
191 extern globus_object_t *
192 globus_error_invalid_credentials_get_invalid_credentials_end_time (globus_object_t * error)
198 globus_error_invalid_credentials_set_invalid_credentials_end_time (
199 globus_object_t * error,
200 globus_object_t * value)
205 extern globus_object_t *
206 globus_error_invalid_credentials_get_invalid_credentials_attempt_time (globus_object_t * error)
212 globus_error_invalid_credentials_set_invalid_credentials_attempt_time (
213 globus_object_t * error,
214 globus_object_t * value)
218 extern const globus_object_type_t
219 GLOBUS_ERROR_TYPE_ACCESS_FAILED_DEFINITION;
221 #define GLOBUS_ERROR_TYPE_ACCESS_FAILED \
222 (&GLOBUS_ERROR_TYPE_ACCESS_FAILED_DEFINITION)
226 extern globus_object_t *
227 globus_error_construct_access_failed (
229 globus_object_t * base_cause,
230 globus_object_t * access_failed_resource,
231 globus_object_t * access_failed_operation);
235 extern globus_object_t *
236 globus_error_initialize_access_failed (
237 globus_object_t * error,
239 globus_object_t * base_cause,
240 globus_object_t * access_failed_resource,
241 globus_object_t * access_failed_operation);
245 extern globus_object_t *
246 globus_error_access_failed_get_access_failed_resource (globus_object_t * error)
252 globus_error_access_failed_set_access_failed_resource (
253 globus_object_t * error,
254 globus_object_t * value)
259 extern globus_object_t *
260 globus_error_access_failed_get_access_failed_operation (globus_object_t * error)
266 globus_error_access_failed_set_access_failed_operation (
267 globus_object_t * error,
268 globus_object_t * value)
272 extern const globus_object_type_t
273 GLOBUS_ERROR_TYPE_NO_AUTHORIZATION_DEFINITION;
275 #define GLOBUS_ERROR_TYPE_NO_AUTHORIZATION \
276 (&GLOBUS_ERROR_TYPE_NO_AUTHORIZATION_DEFINITION)
280 extern globus_object_t *
281 globus_error_construct_no_authorization (
283 globus_object_t * base_cause,
284 globus_object_t * access_failed_resource,
285 globus_object_t * access_failed_operation,
286 globus_object_t * no_authorization_identity);
290 extern globus_object_t *
291 globus_error_initialize_no_authorization (
292 globus_object_t * error,
294 globus_object_t * base_cause,
295 globus_object_t * access_failed_resource,
296 globus_object_t * access_failed_operation,
297 globus_object_t * no_authorization_identity);
301 extern globus_object_t *
302 globus_error_no_authorization_get_no_authorization_identity (globus_object_t * error)
308 globus_error_no_authorization_set_no_authorization_identity (
309 globus_object_t * error,
310 globus_object_t * value)
314 extern const globus_object_type_t
315 GLOBUS_ERROR_TYPE_NOT_AVAILABLE_DEFINITION;
317 #define GLOBUS_ERROR_TYPE_NOT_AVAILABLE \
318 (&GLOBUS_ERROR_TYPE_NOT_AVAILABLE_DEFINITION)
322 extern globus_object_t *
323 globus_error_construct_not_available (
325 globus_object_t * base_cause,
326 globus_object_t * access_failed_resource,
327 globus_object_t * access_failed_operation);
331 extern globus_object_t *
332 globus_error_initialize_not_available (
333 globus_object_t * error,
335 globus_object_t * base_cause,
336 globus_object_t * access_failed_resource,
337 globus_object_t * access_failed_operation);
340 extern const globus_object_type_t
341 GLOBUS_ERROR_TYPE_DEPLETED_DEFINITION;
343 #define GLOBUS_ERROR_TYPE_DEPLETED \
344 (&GLOBUS_ERROR_TYPE_DEPLETED_DEFINITION)
348 extern globus_object_t *
349 globus_error_construct_depleted (
351 globus_object_t * base_cause,
352 globus_object_t * access_failed_resource,
353 globus_object_t * access_failed_operation);
357 extern globus_object_t *
358 globus_error_initialize_depleted (
359 globus_object_t * error,
361 globus_object_t * base_cause,
362 globus_object_t * access_failed_resource,
363 globus_object_t * access_failed_operation);
366 extern const globus_object_type_t
367 GLOBUS_ERROR_TYPE_QUOTA_DEPLETED_DEFINITION;
369 #define GLOBUS_ERROR_TYPE_QUOTA_DEPLETED \
370 (&GLOBUS_ERROR_TYPE_QUOTA_DEPLETED_DEFINITION)
374 extern globus_object_t *
375 globus_error_construct_quota_depleted (
377 globus_object_t * base_cause,
378 globus_object_t * access_failed_resource,
379 globus_object_t * access_failed_operation);
383 extern globus_object_t *
384 globus_error_initialize_quota_depleted (
385 globus_object_t * error,
387 globus_object_t * base_cause,
388 globus_object_t * access_failed_resource,
389 globus_object_t * access_failed_operation);
392 extern const globus_object_type_t
393 GLOBUS_ERROR_TYPE_OFFLINE_DEFINITION;
395 #define GLOBUS_ERROR_TYPE_OFFLINE \
396 (&GLOBUS_ERROR_TYPE_OFFLINE_DEFINITION)
400 extern globus_object_t *
401 globus_error_construct_offline (
403 globus_object_t * base_cause,
404 globus_object_t * access_failed_resource,
405 globus_object_t * access_failed_operation);
409 extern globus_object_t *
410 globus_error_initialize_offline (
411 globus_object_t * error,
413 globus_object_t * base_cause,
414 globus_object_t * access_failed_resource,
415 globus_object_t * access_failed_operation);
418 extern const globus_object_type_t
419 GLOBUS_ERROR_TYPE_ABORTED_DEFINITION;
421 #define GLOBUS_ERROR_TYPE_ABORTED \
422 (&GLOBUS_ERROR_TYPE_ABORTED_DEFINITION)
426 extern globus_object_t *
427 globus_error_construct_aborted (
429 globus_object_t * base_cause,
430 globus_object_t * aborted_operation);
434 extern globus_object_t *
435 globus_error_initialize_aborted (
436 globus_object_t * error,
438 globus_object_t * base_cause,
439 globus_object_t * aborted_operation);
443 extern globus_object_t *
444 globus_error_aborted_get_aborted_operation (globus_object_t * error)
450 globus_error_aborted_set_aborted_operation (
451 globus_object_t * error,
452 globus_object_t * value)
456 extern const globus_object_type_t
457 GLOBUS_ERROR_TYPE_USER_CANCELLED_DEFINITION;
459 #define GLOBUS_ERROR_TYPE_USER_CANCELLED \
460 (&GLOBUS_ERROR_TYPE_USER_CANCELLED_DEFINITION)
464 extern globus_object_t *
465 globus_error_construct_user_cancelled (
467 globus_object_t * base_cause,
468 globus_object_t * aborted_operation);
472 extern globus_object_t *
473 globus_error_initialize_user_cancelled (
474 globus_object_t * error,
476 globus_object_t * base_cause,
477 globus_object_t * aborted_operation);
480 extern const globus_object_type_t
481 GLOBUS_ERROR_TYPE_INTERNAL_ERROR_DEFINITION;
483 #define GLOBUS_ERROR_TYPE_INTERNAL_ERROR \
484 (&GLOBUS_ERROR_TYPE_INTERNAL_ERROR_DEFINITION)
488 extern globus_object_t *
489 globus_error_construct_internal_error (
491 globus_object_t * base_cause,
492 globus_object_t * aborted_operation);
496 extern globus_object_t *
497 globus_error_initialize_internal_error (
498 globus_object_t * error,
500 globus_object_t * base_cause,
501 globus_object_t * aborted_operation);
504 extern const globus_object_type_t
505 GLOBUS_ERROR_TYPE_SYSTEM_ABORTED_DEFINITION;
507 #define GLOBUS_ERROR_TYPE_SYSTEM_ABORTED \
508 (&GLOBUS_ERROR_TYPE_SYSTEM_ABORTED_DEFINITION)
512 extern globus_object_t *
513 globus_error_construct_system_aborted (
515 globus_object_t * base_cause,
516 globus_object_t * aborted_operation);
520 extern globus_object_t *
521 globus_error_initialize_system_aborted (
522 globus_object_t * error,
524 globus_object_t * base_cause,
525 globus_object_t * aborted_operation);
528 extern const globus_object_type_t
529 GLOBUS_ERROR_TYPE_BAD_DATA_DEFINITION;
531 #define GLOBUS_ERROR_TYPE_BAD_DATA \
532 (&GLOBUS_ERROR_TYPE_BAD_DATA_DEFINITION)
536 extern globus_object_t *
537 globus_error_construct_bad_data (
539 globus_object_t * base_cause);
543 extern globus_object_t *
544 globus_error_initialize_bad_data (
545 globus_object_t * error,
547 globus_object_t * base_cause);
550 extern const globus_object_type_t
551 GLOBUS_ERROR_TYPE_NULL_REFERENCE_DEFINITION;
553 #define GLOBUS_ERROR_TYPE_NULL_REFERENCE \
554 (&GLOBUS_ERROR_TYPE_NULL_REFERENCE_DEFINITION)
558 extern globus_object_t *
559 globus_error_construct_null_reference (
561 globus_object_t * base_cause);
565 extern globus_object_t *
566 globus_error_initialize_null_reference (
567 globus_object_t * error,
569 globus_object_t * base_cause);
572 extern const globus_object_type_t
573 GLOBUS_ERROR_TYPE_TYPE_MISMATCH_DEFINITION;
575 #define GLOBUS_ERROR_TYPE_TYPE_MISMATCH \
576 (&GLOBUS_ERROR_TYPE_TYPE_MISMATCH_DEFINITION)
580 extern globus_object_t *
581 globus_error_construct_type_mismatch (
583 globus_object_t * base_cause);
587 extern globus_object_t *
588 globus_error_initialize_type_mismatch (
589 globus_object_t * error,
591 globus_object_t * base_cause);
594 extern const globus_object_type_t
595 GLOBUS_ERROR_TYPE_BAD_FORMAT_DEFINITION;
597 #define GLOBUS_ERROR_TYPE_BAD_FORMAT \
598 (&GLOBUS_ERROR_TYPE_BAD_FORMAT_DEFINITION)
602 extern globus_object_t *
603 globus_error_construct_bad_format (
605 globus_object_t * base_cause);
609 extern globus_object_t *
610 globus_error_initialize_bad_format (
611 globus_object_t * error,
613 globus_object_t * base_cause);
616 extern const globus_object_type_t
617 GLOBUS_ERROR_TYPE_NAME_UNKNOWN_DEFINITION;
619 #define GLOBUS_ERROR_TYPE_NAME_UNKNOWN \
620 (&GLOBUS_ERROR_TYPE_NAME_UNKNOWN_DEFINITION)
624 extern globus_object_t *
625 globus_error_construct_name_unknown (
627 globus_object_t * base_cause);
631 extern globus_object_t *
632 globus_error_initialize_name_unknown (
633 globus_object_t * error,
635 globus_object_t * base_cause);
638 extern const globus_object_type_t
639 GLOBUS_ERROR_TYPE_OUT_OF_RANGE_DEFINITION;
641 #define GLOBUS_ERROR_TYPE_OUT_OF_RANGE \
642 (&GLOBUS_ERROR_TYPE_OUT_OF_RANGE_DEFINITION)
646 extern globus_object_t *
647 globus_error_construct_out_of_range (
649 globus_object_t * base_cause);
653 extern globus_object_t *
654 globus_error_initialize_out_of_range (
655 globus_object_t * error,
657 globus_object_t * base_cause);
660 extern const globus_object_type_t
661 GLOBUS_ERROR_TYPE_TOO_LARGE_DEFINITION;
663 #define GLOBUS_ERROR_TYPE_TOO_LARGE \
664 (&GLOBUS_ERROR_TYPE_TOO_LARGE_DEFINITION)
668 extern globus_object_t *
669 globus_error_construct_too_large (
671 globus_object_t * base_cause);
675 extern globus_object_t *
676 globus_error_initialize_too_large (
677 globus_object_t * error,
679 globus_object_t * base_cause);
682 extern const globus_object_type_t
683 GLOBUS_ERROR_TYPE_TOO_SMALL_DEFINITION;
685 #define GLOBUS_ERROR_TYPE_TOO_SMALL \
686 (&GLOBUS_ERROR_TYPE_TOO_SMALL_DEFINITION)
690 extern globus_object_t *
691 globus_error_construct_too_small (
693 globus_object_t * base_cause);
697 extern globus_object_t *
698 globus_error_initialize_too_small (
699 globus_object_t * error,
701 globus_object_t * base_cause);
704 extern const globus_object_type_t
705 GLOBUS_ERROR_TYPE_COMMUNICATION_FAILED_DEFINITION;
707 #define GLOBUS_ERROR_TYPE_COMMUNICATION_FAILED \
708 (&GLOBUS_ERROR_TYPE_COMMUNICATION_FAILED_DEFINITION)
712 extern globus_object_t *
713 globus_error_construct_communication_failed (
715 globus_object_t * base_cause,
716 globus_object_t * communication_failed_local_resource,
717 globus_object_t * communication_failed_remote_resource);
721 extern globus_object_t *
722 globus_error_initialize_communication_failed (
723 globus_object_t * error,
725 globus_object_t * base_cause,
726 globus_object_t * communication_failed_local_resource,
727 globus_object_t * communication_failed_remote_resource);
731 extern globus_object_t *
732 globus_error_communication_failed_get_communication_failed_local_resource (globus_object_t * error)
738 globus_error_communication_failed_set_communication_failed_local_resource (
739 globus_object_t * error,
740 globus_object_t * value)
745 extern globus_object_t *
746 globus_error_communication_failed_get_communication_failed_remote_resource (globus_object_t * error)
752 globus_error_communication_failed_set_communication_failed_remote_resource (
753 globus_object_t * error,
754 globus_object_t * value)
758 extern const globus_object_type_t
759 GLOBUS_ERROR_TYPE_UNREACHABLE_DEFINITION;
761 #define GLOBUS_ERROR_TYPE_UNREACHABLE \
762 (&GLOBUS_ERROR_TYPE_UNREACHABLE_DEFINITION)
766 extern globus_object_t *
767 globus_error_construct_unreachable (
769 globus_object_t * base_cause,
770 globus_object_t * communication_failed_local_resource,
771 globus_object_t * communication_failed_remote_resource);
775 extern globus_object_t *
776 globus_error_initialize_unreachable (
777 globus_object_t * error,
779 globus_object_t * base_cause,
780 globus_object_t * communication_failed_local_resource,
781 globus_object_t * communication_failed_remote_resource);
784 extern const globus_object_type_t
785 GLOBUS_ERROR_TYPE_PROTOCOL_MISMATCH_DEFINITION;
787 #define GLOBUS_ERROR_TYPE_PROTOCOL_MISMATCH \
788 (&GLOBUS_ERROR_TYPE_PROTOCOL_MISMATCH_DEFINITION)
792 extern globus_object_t *
793 globus_error_construct_protocol_mismatch (
795 globus_object_t * base_cause,
796 globus_object_t * communication_failed_local_resource,
797 globus_object_t * communication_failed_remote_resource);
801 extern globus_object_t *
802 globus_error_initialize_protocol_mismatch (
803 globus_object_t * error,
805 globus_object_t * base_cause,
806 globus_object_t * communication_failed_local_resource,
807 globus_object_t * communication_failed_remote_resource);
810 extern const globus_object_type_t
811 GLOBUS_ERROR_TYPE_PROTOCOL_VIOLATED_DEFINITION;
813 #define GLOBUS_ERROR_TYPE_PROTOCOL_VIOLATED \
814 (&GLOBUS_ERROR_TYPE_PROTOCOL_VIOLATED_DEFINITION)
818 extern globus_object_t *
819 globus_error_construct_protocol_violated (
821 globus_object_t * base_cause,
822 globus_object_t * communication_failed_local_resource,
823 globus_object_t * communication_failed_remote_resource,
824 globus_object_t * protocol_violated_version);
828 extern globus_object_t *
829 globus_error_initialize_protocol_violated (
830 globus_object_t * error,
832 globus_object_t * base_cause,
833 globus_object_t * communication_failed_local_resource,
834 globus_object_t * communication_failed_remote_resource,
835 globus_object_t * protocol_violated_version);
839 extern globus_object_t *
840 globus_error_protocol_violated_get_protocol_violated_version (globus_object_t * error)
846 globus_error_protocol_violated_set_protocol_violated_version (
847 globus_object_t * error,
848 globus_object_t * value)
852 extern const globus_object_type_t
853 GLOBUS_ERROR_TYPE_INVALID_USE_DEFINITION;
855 #define GLOBUS_ERROR_TYPE_INVALID_USE \
856 (&GLOBUS_ERROR_TYPE_INVALID_USE_DEFINITION)
860 extern globus_object_t *
861 globus_error_construct_invalid_use (
863 globus_object_t * base_cause,
864 globus_object_t * invalid_use_operation);
868 extern globus_object_t *
869 globus_error_initialize_invalid_use (
870 globus_object_t * error,
872 globus_object_t * base_cause,
873 globus_object_t * invalid_use_operation);
877 extern globus_object_t *
878 globus_error_invalid_use_get_invalid_use_operation (globus_object_t * error)
884 globus_error_invalid_use_set_invalid_use_operation (
885 globus_object_t * error,
886 globus_object_t * value)
890 extern const globus_object_type_t
891 GLOBUS_ERROR_TYPE_ALREADY_DONE_DEFINITION;
893 #define GLOBUS_ERROR_TYPE_ALREADY_DONE \
894 (&GLOBUS_ERROR_TYPE_ALREADY_DONE_DEFINITION)
898 extern globus_object_t *
899 globus_error_construct_already_done (
901 globus_object_t * base_cause,
902 globus_object_t * invalid_use_operation);
906 extern globus_object_t *
907 globus_error_initialize_already_done (
908 globus_object_t * error,
910 globus_object_t * base_cause,
911 globus_object_t * invalid_use_operation);
914 extern const globus_object_type_t
915 GLOBUS_ERROR_TYPE_ALREADY_REGISTERED_DEFINITION;
917 #define GLOBUS_ERROR_TYPE_ALREADY_REGISTERED \
918 (&GLOBUS_ERROR_TYPE_ALREADY_REGISTERED_DEFINITION)
922 extern globus_object_t *
923 globus_error_construct_already_registered (
925 globus_object_t * base_cause,
926 globus_object_t * invalid_use_operation);
930 extern globus_object_t *
931 globus_error_initialize_already_registered (
932 globus_object_t * error,
934 globus_object_t * base_cause,
935 globus_object_t * invalid_use_operation);
938 extern const globus_object_type_t
939 GLOBUS_ERROR_TYPE_ALREADY_CANCELLED_DEFINITION;
941 #define GLOBUS_ERROR_TYPE_ALREADY_CANCELLED \
942 (&GLOBUS_ERROR_TYPE_ALREADY_CANCELLED_DEFINITION)
946 extern globus_object_t *
947 globus_error_construct_already_cancelled (
949 globus_object_t * base_cause,
950 globus_object_t * invalid_use_operation);
954 extern globus_object_t *
955 globus_error_initialize_already_cancelled (
956 globus_object_t * error,
958 globus_object_t * base_cause,
959 globus_object_t * invalid_use_operation);
962 extern const globus_object_type_t
963 GLOBUS_ERROR_TYPE_NOT_INITIALIZED_DEFINITION;
965 #define GLOBUS_ERROR_TYPE_NOT_INITIALIZED \
966 (&GLOBUS_ERROR_TYPE_NOT_INITIALIZED_DEFINITION)
970 extern globus_object_t *
971 globus_error_construct_not_initialized (
973 globus_object_t * base_cause,
974 globus_object_t * invalid_use_operation);
978 extern globus_object_t *
979 globus_error_initialize_not_initialized (
980 globus_object_t * error,
982 globus_object_t * base_cause,
983 globus_object_t * invalid_use_operation);
Module Descriptor.
Definition: globus_module.h:71