Fresh Beginning
  • Home
  • Speaking
  • Reading
  • Github
  • Alma Mater
  • Contact
Subscribe
Tagged

Try-catch

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 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 on error handler. This is

  • Jayesh Kawli
Jayesh Kawli 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

  • Jayesh Kawli
Jayesh Kawli Jan 23, 2017 • 4 min read
Fresh Beginning © 2022
Powered by Ghost