◆ fiftyoneDegreesStatusCode
Status returned from the initialisation of a resource.
\r\n
Status codes and messages indicating the result of an operation.
A status code is an enum indicating the result of an operation, usually the initialisation of something. If the status is anything other than FIFTYONE_DEGREES_STATUS_SUCCESS, then the operation was not successful. In that case, the status code indicates the nature of the failure.
A status code can be returned by any method that wishes to report a specific error rather than just returning NULL
.
Examples of error status codes are insufficient memory
or corrupt data
. If an operation was successful then this is reported in the same way by returning a success
status code.
Status codes have related messages which can be fetched using the fiftyoneDegreesStatusGetMessage method. The messages are intended to be useful messages which are returned to the user in the event of an error occurring.
const char * | fiftyoneDegreesStatusGetMessage (fiftyoneDegreesStatusCode status, const char *fileName)
Returns an English error message for the status code allocating memory needed to store the message. More...
|
Status returned from the initialisation of a resource.
const char* fiftyoneDegreesStatusGetMessage | ( | fiftyoneDegreesStatusCode | status, |
const char * | fileName | ||
) |
Returns an English error message for the status code allocating memory needed to store the message.
The caller must free the memory when they have finished consuming the error message.