Type Method

userInfoValueProvider(forDomain:)

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

Declaration

class func userInfoValueProvider(forDomain errorDomain: String) -> ((Error, String) -> Any?)?

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

class func setUserInfoValueProvider(forDomain: String, provider: ((Error, String) -> Any?)?)

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

struct ErrorUserInfoKey

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