Closed jleach closed 6 years ago
I think adding the operator overloads isn't the best way to check for specific errors. Better to use code like this:
if let error = error as? AuthenticationError, case .expired = error { }
I think adding the operator overloads isn't the best way to check for specific errors. Better to use code like this:
if let error = error as? AuthenticationError, case .expired = error { }