Dart/Flutter 的錯誤處理
Why don’t I see the full article?
This article is part of a book for purchase. Purchase the book to access this article.
WriterShelf™ is a unique multiple pen name blogging and forum platform. Protect relationships and your privacy. Take your writing in new directions. ** Join WriterShelf**
WriterShelf™ is an open writing platform. The views, information and opinions in this article are those of the author.
Article info
This article is part of:
Categories:
Tags:
Date:
Published: 2021/08/25 - Updated: 2022/01/20
Total: 3639 words
Like
or Dislike
About the Author
很久以前就是個「寫程式的」,其實,什麼程式都不熟⋯⋯
就,這會一點點,那會一點點⋯⋯
More to explore
處理錯誤一直是件很重要的事,這裡我們簡介了 Dart 及 Flutter 的錯誤處理方式:除了將 try-catch-finally 做了介紹,也對非同步及 runZonedGuarded 做了簡介,應該很夠用了。
同樣在 new_audio.dart 的 startRecorder() 裡,有一段 exception 例外處理的程式碼,這也是個大傢伙,雖然短短幾行,我一樣把它抓出來,如下,...