Avatar
The Swift Programming Language. Contribute to apple/swift development by creating an account on GitHub.
2:26 AM
public protocol Error: Sendable { var _domain: String { get } var _code: Int { get } // Note: _userInfo is always an NSDictionary, but we cannot use that type here // because the standard library cannot depend on Foundation. However, the // underscore implies that we control all implementations of this requirement. var _userInfo: AnyObject? { get } #if _runtime(_ObjC) func _getEmbeddedNSError() -> AnyObject? #endif }
2:27 AM
Swift.Error って空じゃないんだ・・・
2:27 AM
Xcodeからは見えない
2:28 AM
NSError._code じゃなくて、
2:28 AM
Error._code が隠しパラメータとして存在していて
2:29 AM
NSError is Error だから、 NSError のじゃなくて Error_code を見ているのかも