letdomain="nshipster.com"letcode=404letuserInfo=[NSLocalizedDescriptionKey:"Requested page is too obscure, and probably does not exist.",NSLocalizedRecoverySuggestionErrorKey:"Go back to the mainstream site."]throwNSError(domain:domain,code:code,userInfo:userInfo)
NSString*domain=@"nshipster.com";NSIntegercode=404;NSDictionary*userInfo=@{NSLocalizedDescriptionKey:@"Requested page is too obscure, and probably does not exist.",NSLocalizedRecoverySuggestionErrorKey:@"Go back to the mainstream site."};NSError*error=[[NSErroralloc]initWithDomain:domaincode:codeuserInfo:userInfo];