Type Method


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


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



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.