Fresh Beginning
  • Home
  • Portfolio
  • My Clothing Shop
  • Etsy Clothing Store
  • Buy Me A Coffee
  • Patreon
  • Speaking
  • Reading
  • About Me
  • Contact 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 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
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 © 2025
Powered by Ghost