begin rescue rails 3 code example Example: rails begin rescue begin 3 + '4' rescue => e puts e.class puts e.message puts e.trace end