GLOBUS_GRAM_PROTOCOL_ERROR_10_HACK_REPLACE_MESSAGE(3)
β¨ globus_gra...or_messages(3) β Library Functions Manual β¨
okay bestie, welcome to the error-message corner of globus_gram_protocol π
this one lives in the Library Functions Manual, and it's all about turning sad little GRAM error numbers into actual sentences you can read. let's go π¦
πΈ NAME πΈ
globus_gram_protocol_error_messages β Error Messages
- GRAM Error Messages. that's it, that's the whole vibe β¨
π SYNOPSIS π
Functions
const char * globus_gram_protocol_error_string (int error_code)
Get a description of a a GRAM error code. (yes, the double "a a" is canon, we don't touch the source text's little quirks, we just appreciate them π)
void globus_gram_protocol_error_7_hack_replace_message (const char *message)
Replace the error message associated with error 7 with a custom message.
void globus_gram_protocol_error_10_hack_replace_message (const char *message)
Replace the error message associated with error 10 with a custom message.
π Detailed Description π
GRAM Error Messages.
The functions in this section handle converting GRAM error codes to strings, which can help the user diagnose GRAM problems. it's giving "translator for your error codes" and honestly? iconic π
π Function Documentation π
π
void globus_gram_protocol_error_10_hack_replace_message (const char * message)
Replace the error message associated with error 10 with a custom message.
So here's the tea: globus_gram_protocol_error_10_hack_replace_message() makes a custom version of the error message for the error GLOBUS_GRAM_PROTOCOL_ERROR_PROTOCOL_FAILED. The string that message points to gets copied to thread-local storage, and every subsequent call to globus_gram_protocol_error_string() with this error number will hand you back this copy of the string. and not me telling you that each time globus_gram_protocol_error_10_hack_replace_message() is called for a particular thread, the previous message is freed π so like, don't hold onto the old one, she's gone.
The purpose of this function is to allow more meaningful error messages to be generated when protocol errors occur. In particular, the specific XIO error reason can be used in place of a generic protocol failure message. lowkey genius fr fr.
Parameters
messageβ The new message to be associated with theGLOBUS_GRAM_PROTOCOL_ERROR_PROTOCOL_FAILEDerror code.
Note π«Ά Since Globus 5.0.0, this function uses thread-specific storage, so that the value returned byglobus_gram_protocol_error_string()forGLOBUS_GRAM_PROTOCOL_ERROR_PROTOCOL_FAILEDis that for the last authorization error whereglobus_gram_protocol_error_10_hack_replace_message()was called from this thread.
πΈ void globus_gram_protocol_error_7_hack_replace_message (const char * message)
Replace the error message associated with error 7 with a custom message.
globus_gram_protocol_error_7_hack_replace_message() creates a custom version of the error message for the error GLOBUS_GRAM_PROTOCOL_ERROR_AUTHORIZATION. The string pointed to by the message parameter is copied to thread-local storage, and subsequent calls to globus_gram_protocol_error_string() with this error number will return this copy of the string. Each time globus_gram_protocol_error_7_hack_replace_message() is called for a particular thread, the previous message is freed. same energy as the error-10 one, just different error number, bestie π¦
The purpose of this function is to allow more meaningful error messages to be generated when authentication failures occur. In particular, the specific GSSAPI error reason can be used in place of a generic authorization failure message. so real of them.
Parameters
messageβ The new message to be associated with theGLOBUS_GRAM_PROTOCOL_ERROR_AUTHORIZATIONerror code.
Note π Since Globus 5.0.0, this function uses thread-specific storage, so that the value returned byglobus_gram_protocol_error_string()forGLOBUS_GRAM_PROTOCOL_ERROR_AUTHORIZATIONis that for the last authorization error whereglobus_gram_protocol_error_7_hack_replace_message()was called from this thread.
β const char * globus_gram_protocol_error_string (int error_code)
Get a description of a a GRAM error code.
The globus_gram_protocol_error_string() function takes a GRAM error code value and returns the associated error code string for the message. The string is statically allocated by the GRAM Protocol library and should not be modified or freed by the caller β hands off, no touchy, she's not yours π The string is intended to complete a sentence of the form "[operation] failed because ..." which is honestly such a dramatic way to structure a sentence and I respect it deeply.
Parameters
error_codeβ The error code to translate into a string.
Returns
The globus_gram_protocol_error_string() function returns a static string containing an explanation of the error. periodt β¨
π Author π
Generated automatically by Doxygen for globus_gram_protocol from the source code. (not a human author, a robot author, and she ate π
)
and that's the whole page bestie!! π this one shipped as globus_gram_protocol, Version 13.6 β so if you're quoting it in the group chat, that's the version tag, no cap. stay slaying those error codes, mwah ππ¦πΈ
π¦ where this page comes from
- fedora 43: globus-gram-protocol-doc 13.6-10.fc43 Β· Apache-2.0
- fedora 44: globus-gram-protocol-doc 13.6-11.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-gram-protocol-doc 13.6-3build2 Β· Apache-2.0
- ubuntu stonking: libglobus-gram-protocol-doc 13.6-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms