#include <xpc/rich_error.h> also included by <xpc/xpc.h>

xpc/rich_error.h

For HeaderDoc.
2 functions

functionxpc_rich_error_copy_description

XPC_EXPORT XPC_WARN_RESULT char * _Nullable xpc_rich_error_copy_description(
	xpc_rich_error_t error
)
@function xpc_rich_error_copy_description Copy the string description of an error. @param error The error to be examined. @result The underlying C string for the provided error. This string should be disposed of with free(3) when done. This will return NULL if a string description could not be generated.

functionxpc_rich_error_can_retry

XPC_EXPORT XPC_WARN_RESULT bool xpc_rich_error_can_retry(xpc_rich_error_t error)
@function xpc_rich_error_can_retry Whether the operation the error originated from can be retried. @param error The error to be inspected. @result Whether the operation the error originated from can be retried.