Learn how to use the new protocol extension and error handling features of Swift 2 Xem cách sử dụng tiện ích mở rộng giao thức mới và các tính năng xử lý lỗi của Swift 3.0
Error Handling - What does "On Error GoTo 0" mean? "On Error Goto 0" nghĩa là gì?
Both of these error handling methods ensures that the end user will not get to see an error. Cả 2 phương pháp xử lý lỗi này đều đảm bảo người dùng cuối không gặp phải lỗi nữa.
We will also look at error handling when an API response returns an error and how to respond in the interface. Chúng ta cũng sẽ quan sát cách xử lý lỗi khi API trả về lỗi và cách show error trong giao diện.
Abbreviated error handling is just one way that programmers gloss over details. Xử lý lỗi không hoàn chỉnh chỉ là một cách để các lập trình viên trốn tránh các chi tiết.
7 - Error Handling Problems - Error conditions that occur during normal operation are not handled properly. Các vấn đề xử lý lỗi: Các lỗi xảy ra trong khi hoạt động bình thường không được xử lý
When properly used with error handling, the ROLLBACK allows for some degree of protection against data corruption. Khi được sử dụng đúng cách với xử lý lỗi, ROLLBACK cho phép bảo vệ chống lại lỗi dữ liệu.
7 - Error Handling Problems - Error conditions that occur during normal operation are not handled properly. Các vấn đề xử lý lỗi: Các lỗi xảy ra trong khi hoạt động bình thường không được xử lý tốt.
Now that we have created an error handling function we need to decide when it should be triggered. Chúng ta đã tạo ra một hàm xử lý lỗi, chúng ta cần phải quyết định khi nào nó được kích hoạt.
Improper error handling :Error conditions that occur during normal operation are not handled properly. Các vấn đề xử lý lỗi: Các lỗi xảy ra trong khi hoạt động bình thường không được xử lý tốt.