globus_gen...or_utility(3)
β¨ NAME β¨
globus_generic_error_utility β Error Handling Helpers
- Error Handling Helpers.
okay bestie, welcome to globus_gen...or_utility(3) from the Library Functions Manual π
this is the page for the Globus Generic Error utility helpers β literally the helpers for dealing with Globus Generic Error objects and making their error chains make sense π«Ά
β¨ SYNOPSIS β¨
Error Match π
globus_bool_t globus_error_match (globus_object_t *error,
globus_module_descriptor_t *module, int type)
Print Error Chain π
char * globus_error_print_chain (globus_object_t *error)
Print User Friendly Error Message π¦
char * globus_error_print_friendly (globus_object_t *error)
β¨ Detailed Description β¨
Error Handling Helpers.
Helper functions for dealing with Globus Generic Error objects.
This section defines utility functions for dealing with Globus Generic Error objects. no cap, it's all about the error objects and their little chain situation π
β¨ Function Documentation β¨
globus_bool_t globus_error_match π₯
globus_bool_t globus_error_match (globus_object_t * error,
globus_module_descriptor_t * module, int type)
Check whether the error originated from a specific module and is of a specific type.
This function checks whether the error or any of its causative errors originated from a specific module and is of a specific type. If the module descriptor is left unspecified, this function will check for any error of the specified type and vice versa. it's giving "flexible but precise" β¨
Parameters
errorβ The error object for which to perform the checkmoduleβ The module descriptor to check fortypeβ The type to check for
Returns
GLOBUS_TRUEβ the error matched the module and typeGLOBUS_FALSEβ the error failed to match the module and type
char * globus_error_print_chain πΈ
char * globus_error_print_chain (globus_object_t * error)
Return a string containing all printable errors found in an error object and its causative error chain.
If the GLOBUS_ERROR_VERBOSE env is set, file, line and function info will also be printed (where available). Otherwise, only the module name will be printed.
Parameters
errorβ The error to print
Returns
A string containing all printable errors. This string needs to be freed by the user of this function. yes bestie, you gotta free it β that's the whole vibe check π§
char * globus_error_print_friendly π
char * globus_error_print_friendly (globus_object_t * error)
Return a string containing error messages from the top 1 and bottom 3 objects, and, if found, show a friendly error message. The error chain will be searched from top to bottom until a friendly handler is found and a friendly message is created.
If the GLOBUS_ERROR_VERBOSE env is set, then the result from globus_error_print_chain() will be used.
Parameters
errorβ The error to print
Returns
A string containing a friendly error message. This string needs to be freed by the user of this function. seriously, free the string β no leaking memory in this group chat ππ
β¨ Author β¨
Generated automatically by Doxygen for globus_common from the source code.
π footer vibe: globus_common, Version 18.15 β and there's no separate date listed on the footer, so that's the whole footer tea, periodt ππ
π¦ where this page comes from
- epel 10: globus-common-doc 18.15-1.el10_2 Β· Apache-2.0
- fedora 43: globus-common-doc 18.15-1.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms