Top "Nserror" questions

NSError is a Cocoa class that encapsulates richer and more extensible error information than is possible using only an error code or error string.

HTTP status code 0 - Error Domain=NSURLErrorDomain?

I am working on an iOS project. In this application, I am downloading images from the server. Problem: While downloading …

http download http-status-codes nserror
How can I use NSError in my iPhone App?

I am working on catching errors in my app, and I am looking into using NSError. I am slightly confused …

iphone ios objective-c ios4 nserror
Returning an NSString from an NSError

I am using the NSURLRequest class in my iPhone app, and the method that calls it returns an NSString which …

objective-c nsstring nserror
Swift creating NSError Object

I am trying to create an error object to display to the user. let userInfo: [NSObject : AnyObject] = [ "NSLocalizedDescriptionKey" : NSLocalizedString("Unauthorized", …

ios swift nserror
Swift, NSJSONSerialization and NSError

The problem is when there is incomplete data NSJSONSerialization.JSONObjectWithData is crashing the application giving unexpectedly found nil while unwrapping …

swift nsjsonserialization nserror
swift programming NSErrorPointer error etc

var data: NSDictionary = NSJSONSerialization.JSONObjectWithData(responseData, options:NSJSONReadingOptions.AllowFragments, error: error) as NSDictionary; This line of code gives me error …

swift xcode6 nserror
How to detect and handle HTTP error codes in UIWebView?

I want to inform user when HTTP error 404 etc is received. How can I detect that? I've already tried to …

ios objective-c iphone uiwebview nserror
Best Practice - NSError domains and codes for your own project/app

There is a previous SO post regarding setting up error domains for your own frameworks, but what is the best …

objective-c cocoa core-data nserror
Objective-C Exceptions

I have just completed an iPhone app programming course. As part of the course, I saw Objective-C provides exception handling …

objective-c exception-handling nserror
How to get the NSError message in iOS?

I am having the method in my view controller as shown below: - (void)parser:(PaymentTermsLibxmlParser *)parser encounteredError:(NSError *)error { …

ios objective-c nserror