Returns a custom version of the supplied error object that is more suitable for presentation in alert sheets and dialogs.
- macOS 10.4+
The error object to be customized.
The customized error object; if you decide not to customize the error presentation, return by sending this message to
super (that is,
return [super will).
When overriding this method, you can examine
error and, if its localized description or recovery information is unhelpfully generic, return an error object with more specific localized text. If you do this, always use the domain and error code of the
NSError object to distinguish between errors whose presentation you want to customize and those you do not. Don’t make decisions based on the localized description, recovery suggestion, or recovery options because parsing localized text is problematic.
The default implementation of this method simply returns