In this video we will have a look at how to customize the Swift Error instance with instance properties. You are free to define any type of property inside a class/structure/enum adapting an error. Typically this is used to pass along any information with the error object when the error is thrown. Throwing an Error with custom property is pretty easy. But if you want to access these properties in the catch block, then it can be bit tricky. In this video we will have a look at how to access the error object inside the catch block .
Follow me on Twitter: / anilvdeshpande