   /// Initialize an error within this domain with the given ``code``
   /// and ``userInfo``.
   public init(_ code: Code, userInfo: [String : Any] = [:]) {
-    self.init(_nsError: NSError(domain: Self._nsErrorDomain,
+    self.init(_nsError: NSError(domain: Self.errorDomain,
                                 code: numericCast(code.rawValue),
                                 userInfo: _stringDictToAnyHashableDict(userInfo)))
   }
 
   /// The user-info dictionary for an error that was bridged from
   /// NSError.
-  var userInfo: [String : Any] { return errorUserInfo }
-}
-
-/// Various helper implementations for _BridgedStoredNSError
-public extension _BridgedStoredNSError
-    where Code: RawRepresentable, Code.RawValue: UnsignedInteger {
-  // FIXME: Generalize to Integer.
-  public var code: Code {
-    return Code(rawValue: numericCast(_nsError.code))!
-  }
-
-  /// Initialize an error within this domain with the given ``code``
-  /// and ``userInfo``.
-  public init(_ code: Code, userInfo: [String : Any] = [:]) {
-    self.init(_nsError: NSError(domain: Self._nsErrorDomain,
-                                code: numericCast(code.rawValue),
-                                userInfo: _stringDictToAnyHashableDict(userInfo)))
-  }
-}
-
-/// Implementation of __BridgedNSError for all _BridgedStoredNSErrors.
+  public var userInfo: [String : Any] { return errorUserInfo }
+}
+
+/// Implementation of _ObjectiveCBridgeableError for all _BridgedStoredNSErrors.
 public extension _BridgedStoredNSError {
-  /// Default implementation of ``init(_bridgedNSError)`` to provide
+  /// Default implementation of ``init(_bridgedNSError:)`` to provide
   /// bridging from NSError.
   public init?(_bridgedNSError error: NSError) {
-    if error.domain != Self._nsErrorDomain {
+    if error.domain != Self.errorDomain {
       return nil
     }
 

    self._nsError = error
  }

  public static var _nsErrorDomain: String { return NSMachErrorDomain }

  public typealias Code = MachErrorCode
}

    self._nsError = error
  }

  public static var errorDomain: String { return NSPOSIXErrorDomain }

  public typealias Code = POSIXErrorCode
}
