Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

All About Errors in Swift

DZone's Guide to

All About Errors in Swift

In this post, we’re going to look at how we can handle messy situations by looking at error handling in Swift, regardless of your skill level.

· Mobile Zone
Free Resource

Get gorgeous, multi-touch charts for your iOS application with just a few lines of code.

Regardless of your skill, handling errors is a common task for any developer. As developers, we have complete control of the code we write and features we include, but despite our best efforts, we don’t control everything. We don’t control the values our users enter or whether our applications have access to the resources they need. In this post, we’re going to look at how we can handle these situations by looking at error handling in Swift…

Pretty certain you’ll find something new here no matter what your skill level:

Up to now, we didn’t even realize catch could take a where clause, huh. That’s what a couple decades of C++ will do to you, reflexively cringe in triggered terror at the mere thought of “exception.” But we’ll get through it — that bit about propagating back asynchronously looks particularly interesting!

Updates:

.Net developers: use Highcharts, the industry's leading interactive charting library, without writing a single line of JavaScript.

Topics:
mobile ,swift ,errors

Published at DZone with permission of Alex Curylo, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}