~/talk

Straying From the Happy Path: Taking Control of Errors in Swift

Talkat 360|iDev 2019 · 2019-08-25..08-28· [swift]
links:none on file
slides:none on file

Survey of Swift error handling that names concrete techniques: use of throws and Result for sync and async, dataTaskPublisher and catch to emit placeholder for Combine, and XCTest assertions to verify failure cases. Shows a reusable pattern to replace fatalError with test closure so crashing paths are exercised and asserted, enabling the claim of 100% test coverage for even “impossible” branches. Includes a table‑view dequeue example and working test harness that makes coverage and behavior observable.

AI-written summary · about

  1. 0:00Intro
  2. 0:15Straying From the Happy Path Taking Control of Errors in Swift
  3. 2:26Error Handling in Objective-C
  4. 4:39Errors in Swift Result
  5. 5:08Result in Practice
  6. 6:48Result in Actual Practice
  7. 7:46Objective-C Error Handling in Practice
  8. 9:49The Swift Error Type
  9. 11:59Advanced throws
  10. 12:54The Error Type
  11. 13:07Effective Swift Errors Logging
  12. 15:01Testing Result
  13. 17:50Testing throws
  14. 18:36Testing fatalError()
  15. 21:38When to Use fatalError()
  16. 22:38Swift Assertion Methods
  17. 28:01Combine Operators
  18. 28:47Combine Publishers The Never Type
  19. 29:36SwiftUl and Errors
  20. 33:02Questions?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.