⚠️ This post links to an external website. ⚠️
In this article, errors in software development are divided into two main categories: expected errors and unexpected errors. Expected errors occur during normal operations, such as validation or network errors, and can be handled gracefully, whereas unexpected errors indicate bugs and should cause the program to crash or panic.
The distinction between these errors can depend on the context, from quick scripts where all errors may be seen as unexpected to critical systems where many errors are anticipated. Languages like Rust tend to classify more errors as expected, promoting reliability, while JavaScript might be more lenient, showcasing different philosophies in error handling within programming.
continue reading onevanhahn.com
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.