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
3rd Party Dependency Tool commands | |
Cocoapod: | |
1)Pod initialization | |
Command: pod init | |
2)Pod installation or updation | |
Command: pod install or pod update | |
Carthage: | |
1)Carthage initialization |
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
/* Error Handling in Swift*/ | |
struct MyError: Error { | |
private let possibleErrors: [Int:String] = { | |
return [ | |
200: "Success", | |
403: "Forbidden", | |
404: "Not Found", | |
500: "Internal Server Error", | |
-999: "Make use of this Error code with your own usage"] |