The two kinds of error

276 · Evan Hahn · March 1, 2026, 8:01 p.m.
Summary
This blog post discusses the two types of errors in software development: expected and unexpected errors. Expected errors, like user input and network issues, are part of normal operations and should be handled gracefully. Unexpected errors, like null pointer exceptions, indicate bugs and should be treated seriously, potentially causing the program to crash. The author emphasizes the importance of error handling in creating reliable software, drawing from personal experience and suggesting different approaches based on the context of development.