22 #ifndef GLOBUS_ERROR_GENERIC_H 23 #define GLOBUS_ERROR_GENERIC_H 25 #include "globus_object.h" 98 #define GLOBUS_ERROR_TYPE_GLOBUS (&GLOBUS_ERROR_TYPE_GLOBUS_DEFINITION) 99 extern const globus_object_type_t GLOBUS_ERROR_TYPE_GLOBUS_DEFINITION;
106 globus_object_t * base_cause,
108 const char * source_file,
109 const char * source_func,
111 const char * short_desc_format,
117 globus_object_t * base_cause,
119 const char * source_file,
120 const char * source_func,
122 const char * short_desc_format,
127 globus_object_t * error,
129 globus_object_t * base_cause,
131 const char * source_file,
132 const char * source_func,
134 const char * short_desc_format,
152 globus_object_t * error);
156 globus_object_t * error,
161 globus_object_t * error);
165 globus_object_t * error,
166 globus_object_t * causal_error);
170 globus_object_t * error);
174 globus_object_t * error,
179 globus_object_t * error);
183 globus_object_t * error,
184 const char * short_desc_format,
189 globus_object_t * error);
193 globus_object_t * error,
194 const char * long_desc_format,
210 globus_object_t * error,
216 globus_object_t * error);
220 globus_object_t * error);
249 typedef char * (*globus_error_print_friendly_t)(
250 globus_object_t * error,
251 const globus_object_type_t * type);
254 #define GLOBUS_ERROR_TYPE_MULTIPLE (&GLOBUS_ERROR_TYPE_MULTIPLE_DEFINITION) 255 extern const globus_object_type_t GLOBUS_ERROR_TYPE_MULTIPLE_DEFINITION;
266 globus_object_t * multiple_error,
267 globus_object_t * chain,
273 globus_object_t * multiple_error);
void globus_error_mutliple_add_chain(globus_object_t *multiple_error, globus_object_t *chain, const char *fmt,...)
Definition: globus_error_generic.c:1157
int globus_error_get_type(globus_object_t *error)
Definition: globus_error_generic.c:393
globus_object_t * globus_error_get_cause(globus_object_t *error)
Definition: globus_error_generic.c:346
globus_object_t * globus_error_construct_multiple(globus_module_descriptor_t *base_source, int type, const char *fmt,...)
Definition: globus_error_generic.c:1077
globus_object_t * globus_error_multiple_remove_chain(globus_object_t *multiple_error)
Definition: globus_error_generic.c:1213
int globus_bool_t
Boolean type.
Definition: globus_types.h:93
Reference Counting Module Activation and Deactivation.
globus_object_t * globus_error_construct_error(globus_module_descriptor_t *base_source, globus_object_t *base_cause, int type, const char *source_file, const char *source_func, int source_line, const char *short_desc_format,...)
Definition: globus_error_generic.c:85
void globus_error_set_long_desc(globus_object_t *error, const char *long_desc_format,...)
Definition: globus_error_generic.c:592
globus_bool_t globus_error_match(globus_object_t *error, globus_module_descriptor_t *module, int type)
Definition: globus_error_generic.c:667
void globus_error_set_short_desc(globus_object_t *error, const char *short_desc_format,...)
Definition: globus_error_generic.c:496
void globus_error_set_cause(globus_object_t *error, globus_object_t *causal_error)
Definition: globus_error_generic.c:370
char * globus_error_print_friendly(globus_object_t *error)
Definition: globus_error_generic.c:920
char * globus_error_get_short_desc(globus_object_t *error)
Definition: globus_error_generic.c:461
void globus_error_set_type(globus_object_t *error, const int type)
Definition: globus_error_generic.c:431
char * globus_error_print_chain(globus_object_t *error)
Definition: globus_error_generic.c:735
char * globus_error_get_long_desc(globus_object_t *error)
Definition: globus_error_generic.c:562
globus_module_descriptor_t * globus_error_get_source(globus_object_t *error)
Definition: globus_error_generic.c:300
globus_object_t * globus_error_initialize_error(globus_object_t *error, globus_module_descriptor_t *base_source, globus_object_t *base_cause, int type, const char *source_file, const char *source_func, int source_line, const char *short_desc_format, va_list ap)
Definition: globus_error_generic.c:225
globus_object_t * globus_error_v_construct_error(globus_module_descriptor_t *base_source, globus_object_t *base_cause, const int type, const char *source_file, const char *source_func, int source_line, const char *short_desc_format, va_list ap)
Definition: globus_error_generic.c:154
void globus_error_set_source(globus_object_t *error, globus_module_descriptor_t *source_module)
Definition: globus_error_generic.c:323
Module Descriptor.
Definition: globus_module.h:71