Modeling errors in Now CLI
summary
Describes a concrete error-handling system built for Now CLI that uses Flow types to make every call’s error space explicit, converts some thrown API failures into returned error values, and defines an ExpectedError prototype to pattern-match and enrich errors from File Upload, Deployment and Instances APIs. Shows how creating a return-or-throw wrapper and specific error classes forces signature updates, enables precise user messages and err.sh links, and already feeds analytics (Liberato) so the approach proves useful in production.
AI-written summary · about
chapters (5)
related talks
19mModeling errors in Now CLI
57mError handling: doing it right!
46mSystematically handling errors in your code to make them useful
27mUsing Monads for Elegant Error Handling
01h 01mModern C++ Error Handling
32mWriting Better Errors
31mHow Many Ways to Say I'm Sorry, Error Handling in React
44mInitiatory Journey from Exceptions to Composable Error Types
