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