Fresh Beginning
  • Home
  • Portfolio
  • Buy Me A Coffee
  • Patreon
  • Speaking
  • Reading
  • About Me
Subscribe

try

A collection of 2 posts
try-catch Blocks and Unit Tests - Swift 3.0
iOS

try-catch Blocks and Unit Tests - Swift 3.0

In the last post [https://www.jayeshkawli.com/try-catch-blocks-swift-3-0/] I wrote about implementing error handler in Swift 3.0 using try-catch block technique. In this post I will go over how to unit test it. Since we all know unit tests are awesome! First off, let's write some fresh code
Jan 27, 2017 3 min read
try-catch blocks - Swift 3.0
Swift 3.0

try-catch blocks - Swift 3.0

Today, I will try to go through some of the error handling techniques Swift uses. As we all know, the standard way to report error in Objective-C is passing an error pointer such as this NSError *error = nil; // Edit - Thanks to @powerje for correction below // Let's assume you have
Jan 23, 2017 4 min read
Fresh Beginning © 2023
Powered by Ghost