globus_err...or_utility(3)
π
globus_err...or_utility(3) π
okay so bestie, welcome to the globus_err...or_utility(3) page from the Library Functions Manual β it's giving globus_errno_error_utility, aka Error Handling Helpers. π«Άβ¨
πΈ NAME πΈ
globus_errno_error_utility β Error Handling Helpers.
Error Handling Helpers.
β¨ SYNOPSIS β¨
Error Match π₯
globus_bool_t globus_error_errno_match (globus_object_t *error,
globus_module_descriptor_t *module, int system_errno)
int globus_error_errno_search (globus_object_t *error)
and globus_error_errno_search() is literally here to Search for an errno value in an error chain. π
Wrap Errno Error π
globus_object_t * globus_error_wrap_errno_error
(globus_module_descriptor_t *base_source, int system_errno, int
type, const char *source_file, const char *source_func, int
source_line, const char *short_desc_format,...)
π Detailed Description π
Error Handling Helpers. periodt.
Helper functions for dealing with Globus Errno Error objects. no cap.
This section defines utility functions for dealing with Globus Errno Error objects. slay.
π Function Documentation π
π«Ά globus_bool_t globus_error_errno_match (globus_object_t * error, globus_module_descriptor_t * module, int system_errno) π«Ά
Check whether the error originated from a specific module and matches a specific errno.
This function checks whether the error or its causative errors originated from a specific module and contains a specific errno. If the module descriptor is left unspecified this function will check for any error of the specified errno and vice versa. iykyk.
Parameters π
errorβ The error object for which to perform the checkmoduleβ The module descriptor to check forsystem_errnoβ The errno to check for
Returns π―
GLOBUS_TRUEβ the error matched the module and errnoGLOBUS_FALSEβ the error failed to match the module and errno
π int globus_error_errno_search (globus_object_t * error) π
Search for an errno value in an error chain. This function searches the error object and its causal errors for an error of type GLOBUS_ERROR_TYPE_ERRNO and returns the errno of that error. If the error and none of its causes are derived from that type, it returns 0.
Parameters π
errorβ The error object for which to perform the check
Returns π―
This function returns 0 if no errorno is found, otherwise the error.
π globus_object_t * globus_error_wrap_errno_error π
globus_object_t * globus_error_wrap_errno_error
(globus_module_descriptor_t * base_source, int system_errno, int type,
const char * source_file, const char * source_func, int source_line,
const char * short_desc_format, ...)
Allocate and initialize an error of type GLOBUS_ERROR_TYPE_GLOBUS which contains a causal error of type GLOBUS_ERROR_TYPE_ERRNO. iconic.
Parameters π
base_sourceβ Pointer to the originating module.system_errnoβ The errno to use when generating the causal error.typeβ The error type. We may reserve part of this namespace for common errors. Errors not in this space are assumed to be local to the originating module.source_fileβ Name of file. UseFILEsource_funcβ Name of function. Use_globus_func_nameand declare your func withGlobusFuncName(<name>)source_lineβ Line number. UseLINEshort_desc_formatβ Short format string giving a succinct description of the error. To be passed on to the user....β Arguments for the format string.
Returns π―
The resulting error object. It is the user's responsibility to eventually free this object using globus_object_free(). A globus_result_t may be obtained by calling globus_error_put() on this object.
π¦ Author π¦
Generated automatically by Doxygen for globus_common from the source code.
and that's the whole globus_err...or_utility(3) page, bestie! source: globus_common, version: 18.15, and the footer didn't print a date β so that's all the footer lore. bye! πβ¨π
π¦ 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