GLOBUS_ERROR_CONSTRUCT_ERROR(3)
β¨ globus_generic_error_object β Error Construction β¨
hiii bestie π«Ά so this lil page is from the Library Functions Manual, and it's literally all about globus_generic_error_object(3). if you've ever been like "how do i even make an error object in Globus," this is the page. it's giving error-construction central, no cap π
πΈ NAME πΈ
globus_generic_error_object β Error Construction.
- Error Construction.
π SYNOPSIS π
Macros
#define GLOBUS_ERROR_TYPE_GLOBUS
Construct Error
globus_object_t * globus_error_construct_error
(globus_module_descriptor_t *base_source, globus_object_t
*base_cause, int type, const char *source_file, const char
*source_func, int source_line, const char *short_desc_format,...)
globus_object_t * globus_error_v_construct_error
(globus_module_descriptor_t *base_source, globus_object_t
*base_cause, const int type, const char *source_file, const char
*source_func, int source_line, const char *short_desc_format,
va_list ap)
Initialize Error
globus_object_t * globus_error_initialize_error (globus_object_t *error,
globus_module_descriptor_t *base_source, globus_object_t
*base_cause, int type, const char *source_file, const char
*source_func, int source_line, const char *short_desc_format,
va_list ap)
π Detailed Description π
Error Construction.
Create and initialize a Globus Generic Error object.
This section defines operations to create and initialize Globus Generic Error objects.
like. that's the whole vibe. you make one, you init one, you go about your day β¨
π¦ Macro Definition Documentation π¦
#define GLOBUS_ERROR_TYPE_GLOBUS
Error type definition.
π Function Documentation π
globus_object_t * globus_error_construct_error (globus_module_descriptor_t * base_source, globus_object_t * base_cause, 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.
Parameters
base_sourceβ Pointer to the originating module.base_causeβ The error object causing the error. If this is the original error this parameter may beNULL.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. UseFILE.source_funcβ Name of function. Use_globus_func_nameand declare your func withGlobusFuncName(<name>).source_lineβ Line number. UseLINE.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.
okay so heads up bestie: you own this object now. free it with globus_object_free() or it just. lingers. π
globus_object_t * globus_error_initialize_error (globus_object_t * error, globus_module_descriptor_t * base_source, globus_object_t * base_cause, int type, const char * source_file, const char * source_func, int source_line, const char * short_desc_format, va_list ap)
Initialize a previously allocated error of type GLOBUS_ERROR_TYPE_GLOBUS.
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 parameter may beNULL.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. UseFILE.source_funcβ Name of function. Use_globus_func_nameand declare your func withGlobusFuncName(<name>).source_lineβ Line number. UseLINE.short_desc_formatβ Short format string giving a succinct description of the error. To be passed on to the user.apβ Arguments for the format string.
Returns
The resulting error object. You may have to call globus_error_put() on this object before passing it on.
note the difference bestie: this one takes an error you already allocated, and yeah, you may have to call globus_error_put() on it before you pass it along. π«Ά
globus_object_t * globus_error_v_construct_error (globus_module_descriptor_t * base_source, globus_object_t * base_cause, const int type, const char * source_file, const char * source_func, int source_line, const char * short_desc_format, va_list ap)
Allocate and initialize an error of type GLOBUS_ERROR_TYPE_GLOBUS.
Parameters
base_sourceβ Pointer to the originating module.base_causeβ The error object causing the error. If this is the original error this parameter may beNULL.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. UseFILE.source_funcβ Name of function. Use_globus_func_nameand declare your func withGlobusFuncName(<name>).source_lineβ Line number. UseLINE.short_desc_formatβ Short format string giving a succinct description of the error. To be passed on to the user.apβ 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.
thevis forva_list, iykyk π same deal as the big one β you free it withglobus_object_free(), and you can grab aglobus_result_tviaglobus_error_put().
β Author β
Generated automatically by Doxygen for globus_common from the source code.
okay that's the whole page, bestie!! π you absolutely ate this one. this came to you courtesy of globus_common, Version 18.15, dated alongside globus_gen...rror_object(3) β mwah, go build some errors, you got this πβ¨
π¦ where this page comes from
- fedora 44: globus-common-doc 18.15-2.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-common-doc 18.15-1 Β· Apache-2.0
- ubuntu stonking: libglobus-common-doc 18.15-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms