Error
public extension Error
Exposing underlying NSError properties not accessible to Swift Error without casting
-
Access NSError.code
Declaration
Swift
var code: Int { get }
-
Access NSError.domain
Declaration
Swift
var domain: String { get }
-
Access NSError.userInfo
Declaration
Swift
var userInfo: [String : Any] { get }
-
Access NSError.userInfo[NSUnderlyingErrorKey] and cast to swift Error
Declaration
Swift
var underlyingError: NSError? { get }