Hacker News new | ask | show | jobs
by tonyhart7 546 days ago
You can use 1 type of error enum for your app

for example me, Yes my code can fail and only have 1 type eg: AppError

but I can supplement that with db error,cache error,serde error etc