Type Method

userInfoValueProviderForDomain:

Returns any user info provider specified for a given error domain.

Declaration

+ (id  _Nullable (^)(NSError * _Nonnull, NSErrorUserInfoKey _Nonnull))userInfoValueProviderForDomain:(NSErrorDomain)errorDomain;

Parameters

errorDomain

The error domain of the user info provider.

Return Value

The user info provider of the error domain, or nil if none is specified.

See Also

Providing Error User Info

+ setUserInfoValueProviderForDomain:provider:

Specifies a block to call when the corresponding property is not present in the user info dictionary.

NSErrorUserInfoKey

These keys may exist in the user info dictionary.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software