This repository has been archived by the owner on Jul 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Exceptional Ruby
Ben Oakes edited this page Sep 20, 2012
·
4 revisions
Presenter: Avdi Grimm
- Nested exceptions: good for gems!
- Circuit Breaker pattern
- Sinatra:
last_modified
-
Hash#fetch
raising an exception -
might_be_nil
orfail "Blah"
-
begin
as a code smell... do outdentrescue
/ensure
instead - 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
A crowd-sourced conference wiki!
Working together is better. :)
- Speakers, for example:
- Recent Conferences
- Software
- Offline Access
- Contributors (More than 50!)
- Code Frequency