# The 5 Commandments of Clean Error Handling in TypeScript

## Metadata
- Author: [[Marvin Roger]]
- Full Title: The 5 Commandments of Clean Error Handling in TypeScript
- Category: #articles
- Summary: Error handling is crucial in software development, especially in TypeScript. The author outlines five key commandments for effective error management, emphasizing the importance of using proper Error instances and maintaining stack traces. By following these guidelines, developers can create clearer and more manageable error handling in their code.
- URL: https://medium.com/with-orus/the-5-commandments-of-clean-error-handling-in-typescript-93a9cbdf1af5
## Highlights
- ***#5*****: Don’t throw errors for problems that are expected to happen** ([View Highlight](https://read.readwise.io/read/01jjwq2663jhkbfbrvf22nhr53))