My app creates a working file in the Application Support folder at launch, and subsequently saves that file in a user preferred folder (specified in p ...
My app creates a working file in the Application Support folder at launch, and subsequently saves that file in a user preferred folder (specified in p ...
I collected a large amount of errors, however they are logged by conversion to NSError domain and code having these information how to determine t ...
When the user is confronted with an unexpected error, I'm providing them with the option to send the error log contents as an email body of an NSShari ...
Apple's sample project CloudKitShare at Sharing CloudKit Data with Other iCloud Users has a line of code that checks whether a parameter 'error' confo ...
I define all custom Errors using enum(s), like: But some errors require additional context, like adding file-path to the message. Unfortunately, b ...
Here is the sample data: Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1020 "A data connection is not currently allo ...
Among the well-documented strings NSLocalizedDescriptionKey, NSLocalizedFailureReasonErrorKey, NSLocalizedRecoveryOptionsErrorKey, and NSLocalizedReco ...
We had an issue with an Error object that crashes in Crashlytics' Objective-c code because it doesn't respond to userInfo (a member of NSError), while ...
I'm trying to find an easier/more reliable way to figure out an NSError's localized description from its error code than Google searching it. For exa ...
I'm trying to check if error.localizedDescription contains a certain string but i keep getting a crash I have even tried to even use another way ...
I tried to convert the swift Error to Objective C NSError to but getting a crash while doing. Thanks Nicky ...
I am trying to debug my "videoGenerator" class; which is a class that takes video URLs and audio URLs and merges them together with AVFoundation. When ...
Code: How can I access properties that are passed by caller while creating my error? ...
I've read the Swift Evolution post on the improved bridging and some other sources online, but still something is missing. Given this custom Error en ...
I've got an iOS application that is designed with English-only strings. When running on an iOS device that is using another language for display (i.e. ...
I have been working with Objective-C for a couple of years know but I am still quite new to Swift. Currently I am working to add some new Swift 5 bas ...
I have a localized app. I use WKWebView and also make some network requests. All the app localization works as expected. But errors from webView:didFa ...
I'm handling the server trust authentication challenge in a custom way (comparing the public key from the server trust with a hashed local version) th ...
Apple's guide on Using and Creating Error Objects gives the following code example: and accompanies it with the statement: Important: Success o ...
How to call the original NSError init method when swizzling? My current implementation ...