22 #ifndef GLOBUS_ERROR_GENERIC_H 23 #define GLOBUS_ERROR_GENERIC_H 25 #include "globus_object.h" 95 #define GLOBUS_ERROR_TYPE_GLOBUS (&GLOBUS_ERROR_TYPE_GLOBUS_DEFINITION) 96 extern const globus_object_type_t GLOBUS_ERROR_TYPE_GLOBUS_DEFINITION;
103 globus_object_t * base_cause,
105 const char * source_file,
106 const char * source_func,
108 const char * short_desc_format,
114 globus_object_t * base_cause,
116 const char * source_file,
117 const char * source_func,
119 const char * short_desc_format,
124 globus_object_t * error,
126 globus_object_t * base_cause,
128 const char * source_file,
129 const char * source_func,
131 const char * short_desc_format,
148 globus_object_t * error);
152 globus_object_t * error,
157 globus_object_t * error);
161 globus_object_t * error,
162 globus_object_t * causal_error);
166 globus_object_t * error);
170 globus_object_t * error,
175 globus_object_t * error);
179 globus_object_t * error,
180 const char * short_desc_format,
185 globus_object_t * error);
189 globus_object_t * error,
190 const char * long_desc_format,
205 globus_object_t * error,
211 globus_object_t * error);
215 globus_object_t * error);
244 typedef char * (*globus_error_print_friendly_t)(
245 globus_object_t * error,
246 const globus_object_type_t * type);
249 #define GLOBUS_ERROR_TYPE_MULTIPLE (&GLOBUS_ERROR_TYPE_MULTIPLE_DEFINITION) 250 extern const globus_object_type_t GLOBUS_ERROR_TYPE_MULTIPLE_DEFINITION;
261 globus_object_t * multiple_error,
262 globus_object_t * chain,
268 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:69