~/talk

Things You Didn't Know About Exceptions

Talkat Rocky Mountain Ruby 2011 · 2011-08-31..09-02· [ruby]
slides:none on file

Shows concrete Ruby tricks: using retry to loop a failing operation; reading the global $! (aka error_info) inside an at_exit crash logger; adding an original pointer for nested exceptions by defaulting to error_info; mutating an exception message to add file/line context while preserving backtrace; overriding raise to attach a continuation so an ignore operation resumes execution (works but is hazardous); Hammer Time gem gives an in-place error console.

AI-written summary · about

  1. 0:00Start
  2. 1:02Using a loop
  3. 1:24Using retry
  4. 2:08The $! global
  5. 3:07A simple crash logger
  6. 4:45Using nested exceptions
  7. 5:51Failures without context
  8. 6:24Adding context
  9. 7:28raise is a method
  10. 7:49Overriding raise
  11. 8:10Hammertime
  12. 8:52How you think raise works
  13. 9:52Implement your own #exception
  14. 10:53rescue and case
  15. 12:19Really dynamic rescue clauses
  16. 12:40Dynamic matcher generator
  17. 14:30abort
  18. 14:43exit!
  19. 15:15Ignorable exceptions
  20. 15:37Ignoring the whiny method
  21. 16:09Exception with continuation
  22. 16:35Capturing the continuation
  23. 17:32Override system raise
  24. 18:51Thank You
~/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.