globus_error_api(3)
NAME π
globus_error_api β the Globus Error API, bestie. That's it, that's the name.
It's literally giving: Globus Error API. π
SYNOPSIS β¨
Topics π¦
- Globus Errno Error API β the Globus Errno Error API, no cap.
- Globus Generic Error API β the Globus Generic Error API, periodt.
Detailed Description π
Globus Error API. Okay so that's the whole vibe, but here's the tea on how you're actually supposed to use it π
Intended use:
If a function needs to return an error it should do the following:
- External errors, like error returns from system calls and GSSAPI errors, should be wrapped using the appropriate error type. Wrap it up, don't just yeet it out raw π
- The wrapped external error should then be passed as the cause of a globus error. Cause. Not the whole thing. The globus error is the outer layer, the external one goes inside as the reason πΈ
- External error types are expected to provide a utility function to combine the above two steps. So the wrapping + the causing = one lil helper function. Iconic behaviour honestly β¨
- The globus error should then be returned from the function. That's the one you actually hand back π«Ά
Notes on how to generate globus errors:
- Module specific error types should be greater or equal to
1024(to leave some space for global error types). Like,1024and up, bestie β the low numbers are taken, respect the territory π€ - You may wish to generate a mapping from error types to format strings for use in short descriptions. Type in, format string out, so your short descriptions stay cute and consistent π
- You may also wish to generate a common prefix for all of the above fromat strings. The suggested prefix is
"Function: %s Line: %s ". Yes we're copy-pasting that exactly, spaces and all, don't come for me π
ngl that prefix string has a double space after Line: and a trailing space at the end. That's not me being sloppy, that's literally what it says. Keep it fr fr π
Author π
Generated automatically by Doxygen for globus_common from the source code. Not a human, not a girlie, just Doxygen doing its thing π€β¨
That's the whole page, bestie β courtesy of globus_common, Version 18.15 π slay, read responsibly π
π¦ 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