Presenter: [[Avdi Grimm]]
- Nested exceptions: good for gems!
- Circuit Breaker pattern
- Sinatra:
last_modified Hash#fetchraising an exceptionmight_be_nilorfail "Blah"beginas a code smell... do outdentrescue/ensureinstead- make a "contingency method"
with_io_handling { do it }
Maybe wrap your exceptions:
module Mylib::Error; end
rescue Eception => e
e.extend Mylib::Error
end
-
UserError, LogicError, TransientError
-
Book code: RUBYCONF2011
-
avdi.org/devblog/exeption-ruby