Your program has been running perfectly for ten minutes. Then someone passes in a string where you expected a number. Or the file you're trying to read got deleted. Or the internet went down mid-request. Or a user typed nothing when your code expected input. Your program crashes. A wall of red text appears. Everything stops. This is not bad luck. This is normal. Errors happen in every real program
When Code Breaks: How to Handle Errors Like a Pro
Akhilesh·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.