Panduan: Error Handling

Swift Language Guide: Part 16

Error Handling adalah proses merespon dan me-recover kondisi dari suatu error yang terjadi. Swift 4 menyediakan dukungan terbaik untuk throwing, catching, propagating, dan manipulasi recoverable error yang terjadi saat run-time.

Daftar Isi

  1. Representing and Throwing Error
  2. Handling Error
  3. Specifying Cleanup Action

Representing and Throwing Error

Handling Error

Propagating Errors Using Throwing Function

Handling Errors Using Do-Catch

Converting Errors to Optional Value

Disabling Error Propagation

Specifying Cleanup Action

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.