Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

globus_errno_error_object(3) [debian man page]

Error Construction(3)						   globus common					     Error Construction(3)

NAME
Error Construction - Macros #define GLOBUS_ERROR_TYPE_ERRNO Construct Error globus_object_t * globus_error_construct_errno_error (globus_module_descriptor_t *base_source, globus_object_t *base_cause, const int system_errno) Initialize Error globus_object_t * globus_error_initialize_errno_error (globus_object_t *error, globus_module_descriptor_t *base_source, globus_object_t *base_cause, const int system_errno) Detailed Description Create and initialize a Globus Errno Error object. This section defines operations to create and initialize Globus Errno Error objects. Macro Definition Documentation #define GLOBUS_ERROR_TYPE_ERRNO Error type definition. Function Documentation globus_object_t* globus_error_construct_errno_error (globus_module_descriptor_t *base_source, globus_object_t *base_cause, const intsystem_errno) Allocate and initialize an error of type GLOBUS_ERROR_TYPE_ERRNO. Parameters: base_source Pointer to the originating module. base_cause The error object causing the error. If this is the original error, this paramater may be NULL. system_errno The system errno. 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. globus_object_t* globus_error_initialize_errno_error (globus_object_t *error, globus_module_descriptor_t *base_source, globus_object_t *base_cause, const intsystem_errno) Initialize a previously allocated error of type GLOBUS_ERROR_TYPE_ERRNO. Parameters: error The previously allocated error object. base_source Pointer to the originating module. base_cause The error object causing the error. If this is the original error this paramater may be NULL. system_errno The system errno. Returns: The resulting error object. You may have to call globus_error_put() on this object before passing it on. Author Generated automatically by Doxygen for globus common from the source code. Version 14.7 Tue Nov 27 2012 Error Construction(3)

Check Out this Related Man Page

Error Handling Helpers(3)					   globus common					 Error Handling Helpers(3)

NAME
Error Handling Helpers - 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 Helper functions for dealing with Globus Generic Error objects. This section defines utility functions for dealing with Globus Generic Error objects. Function Documentation globus_bool_t globus_error_match (globus_object_t *error, globus_module_descriptor_t *module, inttype) Check whether the error originated from a specific module and is of a specific type. This function checks whether the error or any of it's 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. Parameters: error The error object for which to perform the check module The module descriptor to check for type The type to check for Returns: GLOBUS_TRUE - the error matched the module and type GLOBUS_FALSE - the error failed to match the module and type char* globus_error_print_chain (globus_object_t *error) Return a string containing all printable errors found in a error object and it's 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. 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. Author Generated automatically by Doxygen for globus common from the source code. Version 14.7 Tue Nov 27 2012 Error Handling Helpers(3)
Man Page