Skip to content

Added missing keys for NSURLError #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Foundation/NSURLError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
@discussion Constants used by NSError to differentiate between "domains" of error codes, serving as a discriminator for error codes that originate from different subsystems or sources.
@constant NSURLErrorDomain Indicates an NSURL error.
*/
public let NSURLErrorDomain: String = "" // NSUnimplemented
public let NSURLErrorDomain: String = "NSURLErrorDomain"

/*!
@const NSURLErrorFailingURLErrorKey
@abstract The NSError userInfo dictionary key used to store and retrieve the URL which caused a load to fail.
*/
public let NSURLErrorFailingURLErrorKey: String = "" // NSUnimplemented
public let NSURLErrorFailingURLErrorKey: String = "NSErrorFailingURLKey"

/*!
@const NSURLErrorFailingURLStringErrorKey
@abstract The NSError userInfo dictionary key used to store and retrieve the NSString object for the URL which caused a load to fail.
@discussion This constant supersedes NSErrorFailingURLStringKey, which was deprecated in Mac OS X 10.6. Both constants refer to the same value for backward-compatibility, but this symbol name has a better prefix.
*/
public let NSURLErrorFailingURLStringErrorKey: String = "" // NSUnimplemented
public let NSURLErrorFailingURLStringErrorKey: String = "NSErrorFailingURLStringKey"

/*!
@const NSErrorFailingURLStringKey
Expand All @@ -37,14 +37,14 @@ public let NSURLErrorFailingURLStringErrorKey: String = "" // NSUnimplemented
@const NSURLErrorFailingURLPeerTrustErrorKey
@abstract The NSError userInfo dictionary key used to store and retrieve the SecTrustRef object representing the state of a failed SSL handshake.
*/
public let NSURLErrorFailingURLPeerTrustErrorKey: String = "" // NSUnimplemented
public let NSURLErrorFailingURLPeerTrustErrorKey: String = "NSURLErrorFailingURLPeerTrustErrorKey"

/*!
@const NSURLErrorBackgroundTaskCancelledReasonKey
@abstract The NSError userInfo dictionary key used to store and retrieve the NSNumber corresponding to the reason why a background
NSURLSessionTask was cancelled
*/
public let NSURLErrorBackgroundTaskCancelledReasonKey: String = "" // NSUnimplemented
public let NSURLErrorBackgroundTaskCancelledReasonKey: String = "NSURLErrorBackgroundTaskCancelledReasonKey"

/*!
@enum Codes associated with NSURLErrorBackgroundTaskCancelledReasonKey
Expand Down