The Perils of “rescue Exception”
27 days ago by sunpig
So remember, your application errors should be subclasses of StandardError and if you want to catch everything, just stick will plain old “rescue => ex”. Your application will behave better for it.
ruby
exception
rescue
begin
standardexception
interrupt
kill
zombie
27 days ago by sunpig
related tags
3.2 ⊕ activerecord ⊕ begin ⊕ catch ⊕ code ⊕ debug ⊕ error ⊕ exception ⊖ expect ⊕ feature ⊕ handle ⊕ handling ⊕ hungarian ⊕ interrupt ⊕ javascript ⊕ joel ⊕ js ⊕ kill ⊕ nicholaszakas ⊕ pattern ⊕ rails ⊕ rescue ⊕ ruby ⊕ safe ⊕ software ⊕ spolsky ⊕ standardexception ⊕ style ⊕ test ⊕ thoughtbot ⊕ try ⊕ web ⊕ webdev ⊕ zombie ⊕Copy this bookmark: