Engineering·3 min read
Typed errors: each error with its code and its destination.
`throw new Error('not found')` tells you nothing in production. Each error is a type, with a stable code, and declares whether it deserves to reach the error tracker.