This is a demonstration how exceptionally
can be used to improve your code quality.
You can find the related slides here.
This repository has a few branches to show you how to get from zero exception handling to fully typed exceptions.
The branches show:
1-base
: the starting point that offers no exception handling2-throw-errors
: throw errors whenever something could go wrong duringfetch
3-data-exception-tuple
: return exceptions instead of throwing them using the[data,exception]-tuple
approach4-exception-classes
: return different exception classes to be able to distinguish them5-exceptionally
: refactor the codebase usingexceptionally
showing it's easy integration and utility functions6-complete
: showcase usage of utility functions