Function

CFErrorGetCode

Returns the error code for a given CFError.

Declaration

CFIndex CFErrorGetCode(CFErrorRef err);

Parameters

err

The error to examine. If this is not a valid CFError, the behavior is undefined.

Return Value

The error code of err.

Discussion

Note that this function returns the error code for the specified CFError, not an error return for the current call.

See Also

Getting Information About an Error

CFErrorGetDomain

Returns the error domain for a given CFError.

CFErrorCopyUserInfo

Returns the user info dictionary for a given CFError.

CFErrorCopyDescription

Returns a human-presentable description for a given error.

CFErrorCopyFailureReason

Returns a human-presentable failure reason for a given error.

CFErrorCopyRecoverySuggestion

Returns a human presentable recovery suggestion for a given error.