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.

Swift 3 conversion Error/NSError

While trying to migrate to Swift 3 (in a project which contains about half/half swift/objective-c code), I am facing …

ios objective-c swift3 swift-protocols nserror
Why does [[NSError alloc] init]; in Xcode throw an error?

I have the following code in Xcode : NSError *error = [[NSError alloc] init]; NSData *urlData=[NSURLConnection sendSynchronousRequest:request returningResponse:&response …

ios nserror alloc
Swift doesn't convert Objective-C NSError** to throws

I have some Objective-C legacy code, that declares method like - (void)doSomethingWithArgument:(ArgType)argument error:(NSError **)error As written …

ios objective-c swift nserror
how to get the message in NSLocalizedDescription in iOS?

I have this error in requesting data from api.. All I want is to get only the message "The request …

ios7 nserror
NSError: Does using nil to detect Error actually turn off error reporting?

I got into the habit of coding my error handling this way: NSError* error = nil; NSDictionary *attribs = [[NSFileManager defaultManager] removeItemAtPath:…

objective-c null nserror