~/talk

Error Handling Without Throwing Exceptions

Talkat Scale By the Bay 2017 · 2017-11-16..11-18· [functional-programming]
links:none on file
slides:none on file

Payment service for a shopping bot at eBay uses EitherT stacking Future+Either so asynchronous calls to external services short‑circuit on the first failure and still carry typed error payloads. Validation of inputs uses Validated for accumulating errors so field‑level problems are collected, and an error hierarchy records which external service, location and reason caused each failure. Validation rules are checked with ScalaCheck property‑based tests, and both fail‑fast and accumulated flows are implemented with Cats.

AI-written summary · about

  1. 0:00Introduction
  2. 3:23Problems with exceptions
  3. 6:37Alternatives to exceptions
  4. 8:08Handling external services
  5. 11:24Refactoring error handling
  6. 15:11Resources and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.