globus_errno_error_utility - Online Linux Manual PageSection : 3
Updated : Tue Jan 26 2021
Source : Version 18.9
Note : globus_common

NAMEglobus_errno_error_utility − Error Handling Helpers
 − Error Handling Helpers​.

SYNOPSIS

Error Matchglobus_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)
Search for an errno value in an error chain <>

Wrap Errno Errorglobus_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 DescriptionError Handling Helpers​. Helper functions for dealing with Globus Errno Error objects​. This section defines utility functions for dealing with Globus Errno Error objects​.

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 any of it's 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​. Parameters error The error object for which to perform the check
module The module descriptor to check for
system_errno The errno to check for
Returns GLOBUS_TRUE - the error matched the module and errno GLOBUS_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_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​. <> 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​. Use FILE
source_func Name of function​. Use _globus_func_name and declare your func with GlobusFuncName(<name>)
source_line Line number​. Use LINE
short_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​.

AuthorGenerated automatically by Doxygen for globus_common from the source code​.
0
Johanes Gumabo
Data Size   :   13,161 byte
man-globus_errno_error_utility.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 181,594
Visitor ID   :     :  
Visitor IP   :   3.144.119.149   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.