   @available(OSX, introduced=10.10) @available(iOS, introduced=8.0)
   case BackgroundSessionWasDisconnected = -997
 
-  public var _domain: String { return NSURLErrorDomain }
-  public var _code: Int { return rawValue }
-
-  public init?(rawValue: Int) {
-    self = unsafeBitCast(rawValue, _NSURLError.self)
-  }
-
-  public init?(_bridgedNSError: NSError) {
-    if _bridgedNSError.domain != NSURLErrorDomain {
-      return nil
-    }
-
-    if let result = _NSURLError(rawValue: _bridgedNSError.code) {
-      self = result
-    } else {
-      return nil
-    }
-  }
-}
+  public static var _NSErrorDomain: String { return NSURLErrorDomain }
+}

  }
}

@objc public enum _NSCocoaError : Int, _ObjectiveCBridgeableErrorType {
  // Foundation errors
  case FileNoSuchFileError = 4
  case FileLockingError = 255

  }
#endif

  public static var _NSErrorDomain: String { return NSCocoaErrorDomain }
}

/// Enumeration that describes the error codes within the NSURL error
/// domain.
@objc public enum _NSURLError : Int, _BridgedNSError {
  case Unknown = -1
  case Cancelled = -999
  case BadURL = -1000
