Created
April 12, 2022 13:25
-
-
Save meyusufdemirci/03158f65d7816ed9e517effc2d42f6cb to your computer and use it in GitHub Desktop.
Error Handling Article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum NetworkError: String, Error { | |
case userNotFound = "USER_NOT_FOUND" | |
var userFriendlyDescription: String { | |
"NetworkError.\(self)".localized | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment