![Andrea Bizzotto 💙 on Twitter: "So how can we make it explicit that the function can return an error? What we need is a Result type that can represent *either* a success Andrea Bizzotto 💙 on Twitter: "So how can we make it explicit that the function can return an error? What we need is a Result type that can represent *either* a success](https://pbs.twimg.com/media/FYsC8zfWYAE7mxl.png)
Andrea Bizzotto 💙 on Twitter: "So how can we make it explicit that the function can return an error? What we need is a Result type that can represent *either* a success
![Vandad Nahavandipoor on Twitter: "In #Flutter you can throw anything, like cats do 😅! That means you can have an #enum that describes your #exceptions like enum Exceptions { invalidUserName, invalidPassword } Vandad Nahavandipoor on Twitter: "In #Flutter you can throw anything, like cats do 😅! That means you can have an #enum that describes your #exceptions like enum Exceptions { invalidUserName, invalidPassword }](https://pbs.twimg.com/media/FGi9fPiXsAQZGyQ.jpg:large)
Vandad Nahavandipoor on Twitter: "In #Flutter you can throw anything, like cats do 😅! That means you can have an #enum that describes your #exceptions like enum Exceptions { invalidUserName, invalidPassword }
![To make developers know when an exception is not handled · Issue #95508 · flutter/flutter · GitHub To make developers know when an exception is not handled · Issue #95508 · flutter/flutter · GitHub](https://user-images.githubusercontent.com/50614497/146646387-c86f34af-c304-4cb8-a90f-12b1dff02f8f.png)
To make developers know when an exception is not handled · Issue #95508 · flutter/flutter · GitHub
Exception thrown at runtime is not shown by flutter run output or by IDE, unless you're step-by-step debugging · Issue #19604 · flutter/flutter · GitHub
![Dart Errors and Exceptions - Exceptions (try-catch-finally blocks) and create own Exception class - YouTube Dart Errors and Exceptions - Exceptions (try-catch-finally blocks) and create own Exception class - YouTube](https://i.ytimg.com/vi/N5HgO7dLgc8/maxresdefault.jpg)
Dart Errors and Exceptions - Exceptions (try-catch-finally blocks) and create own Exception class - YouTube
![Hot Restart does not complete if exceptions are hit during the restart · Issue #3448 · Dart-Code/Dart-Code · GitHub Hot Restart does not complete if exceptions are hit during the restart · Issue #3448 · Dart-Code/Dart-Code · GitHub](https://user-images.githubusercontent.com/41773861/124109003-49ec3380-da99-11eb-8a76-a5396600d60c.png)