globus_error_generic.h(3) | globus_common | globus_error_generic.h(3) |
globus_error_generic.h - Globus Error API.
#include 'globus_object.h'
#include 'globus_module.h'
#include <stdarg.h>
#define GLOBUS_ERROR_TYPE_GLOBUS
typedef char *(* globus_error_print_friendly_t)
(globus_object_t *error, const globus_object_type_t *type)
globus_module_descriptor_t * globus_error_get_source
(globus_object_t *error)
void globus_error_set_source (globus_object_t *error,
globus_module_descriptor_t *source_module)
globus_object_t * globus_error_get_cause (globus_object_t *error)
void globus_error_set_cause (globus_object_t *error, globus_object_t
*causal_error)
int globus_error_get_type (globus_object_t *error)
void globus_error_set_type (globus_object_t *error, const int type)
char * globus_error_get_short_desc (globus_object_t *error)
void globus_error_set_short_desc (globus_object_t *error, const char
*short_desc_format,...)
char * globus_error_get_long_desc (globus_object_t *error)
void globus_error_set_long_desc (globus_object_t *error, const char
*long_desc_format,...)
globus_bool_t globus_error_match (globus_object_t *error,
globus_module_descriptor_t *module, int type)
char * globus_error_print_chain (globus_object_t *error)
char * globus_error_print_friendly (globus_object_t *error)
globus_object_t * globus_error_construct_multiple
(globus_module_descriptor_t *base_source, int type, const char
*fmt,...)
void globus_error_mutliple_add_chain (globus_object_t *multiple_error,
globus_object_t *chain, const char *fmt,...)
globus_object_t * globus_error_multiple_remove_chain (globus_object_t
*multiple_error)
Globus Error API.
If registered with a module's descriptor, this handler will be called on behalf of globus_error_print_friendly()
Parameters
Returns
If you think a friendly error from causes beneath you should be included, you may use globus_error_print_friendly(globus_error_get_cause(error)) within this handler to append to your message.
Multiple error type stuff Construct a container object for multiple error chains. Useful when an application tries many things (and each fails) before finally giving up;
Use globus_error_mutliple_add_chain() to add error objects/chains to this object.
Parameters
Returns
Remove an error chain from a multiple error object.
Parameters
Returns
Add an error chain to a multiple error object.
Parameters
Returns
Generated automatically by Doxygen for globus_common from the source code.
Sun Dec 13 2020 | Version 18.9 |